From 1ffda5161965d2a1a12b4aa6b63ac3b67fa03bc7 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Sat, 14 Mar 2020 17:26:52 +0100 Subject: [PATCH] add bangs --- src/plot.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plot.jl b/src/plot.jl index 8cfeac20..6c4c8613 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -54,7 +54,7 @@ function plot(args...; kw...) # create an empty Plot then process plt = Plot() # plt.user_attr = plotattributes - recipe_pipeline(plt, plotattributes, args) + recipe_pipeline!(plt, plotattributes, args) end # build a new plot from existing plots @@ -155,7 +155,7 @@ function plot!(plt::Plot, args...; kw...) plotattributes = KW(kw) preprocessArgs!(plotattributes) # merge!(plt.user_attr, plotattributes) - recipe_pipeline(plt, plotattributes, args) + recipe_pipeline!(plt, plotattributes, args) end # ------------------------------------------------------------------------------- @@ -165,7 +165,7 @@ end # note: at entry, we only have those preprocessed args which were passed in... no default values yet ## here we implement the recipe interface -function _recipe_init(plt::Plot, plotattributes::AKW, args::Tuple) +function _recipe_init!(plt::Plot, plotattributes::AKW, args::Tuple) plotattributes[:plot_object] = plt if !isempty(args) && !isdefined(Main, :StatsPlots) && @@ -174,7 +174,7 @@ function _recipe_init(plt::Plot, plotattributes::AKW, args::Tuple) end end -function _recipe_after_plot(plt::Plot, plotattributes::AKW, args::Tuple) +function _recipe_after_plot!(plt::Plot, plotattributes::AKW, args::Tuple) # -------------------------------- # Plot/Subplot/Layout setup # -------------------------------- @@ -182,7 +182,7 @@ function _recipe_after_plot(plt::Plot, plotattributes::AKW, args::Tuple) _subplot_setup(plt, plotattributes, kw_list) end -function _recipe_finish(plt::Plot, plotattributes::AKW, args::Tuple) +function _recipe_finish!(plt::Plot, plotattributes::AKW, args::Tuple) current(plt) # do we want to force display?