add bangs
This commit is contained in:
parent
f7282dd49a
commit
476769fab6
10
src/plot.jl
10
src/plot.jl
@ -54,7 +54,7 @@ function plot(args...; kw...)
|
|||||||
# create an empty Plot then process
|
# create an empty Plot then process
|
||||||
plt = Plot()
|
plt = Plot()
|
||||||
# plt.user_attr = plotattributes
|
# plt.user_attr = plotattributes
|
||||||
recipe_pipeline(plt, plotattributes, args)
|
recipe_pipeline!(plt, plotattributes, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# build a new plot from existing plots
|
# build a new plot from existing plots
|
||||||
@ -155,7 +155,7 @@ function plot!(plt::Plot, args...; kw...)
|
|||||||
plotattributes = KW(kw)
|
plotattributes = KW(kw)
|
||||||
preprocessArgs!(plotattributes)
|
preprocessArgs!(plotattributes)
|
||||||
# merge!(plt.user_attr, plotattributes)
|
# merge!(plt.user_attr, plotattributes)
|
||||||
recipe_pipeline(plt, plotattributes, args)
|
recipe_pipeline!(plt, plotattributes, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------
|
||||||
@ -165,7 +165,7 @@ end
|
|||||||
# note: at entry, we only have those preprocessed args which were passed in... no default values yet
|
# note: at entry, we only have those preprocessed args which were passed in... no default values yet
|
||||||
|
|
||||||
## here we implement the recipe interface
|
## 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
|
plotattributes[:plot_object] = plt
|
||||||
|
|
||||||
if !isempty(args) && !isdefined(Main, :StatsPlots) &&
|
if !isempty(args) && !isdefined(Main, :StatsPlots) &&
|
||||||
@ -174,7 +174,7 @@ function _recipe_init(plt::Plot, plotattributes::AKW, args::Tuple)
|
|||||||
end
|
end
|
||||||
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
|
# Plot/Subplot/Layout setup
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
@ -182,7 +182,7 @@ function _recipe_after_plot(plt::Plot, plotattributes::AKW, args::Tuple)
|
|||||||
_subplot_setup(plt, plotattributes, kw_list)
|
_subplot_setup(plt, plotattributes, kw_list)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _recipe_finish(plt::Plot, plotattributes::AKW, args::Tuple)
|
function _recipe_finish!(plt::Plot, plotattributes::AKW, args::Tuple)
|
||||||
current(plt)
|
current(plt)
|
||||||
|
|
||||||
# do we want to force display?
|
# do we want to force display?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user