forked from JuliaPlots/Plots.jl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
|
||
## Stubs | ||
function _recipe_init!(plt, plotattributes, args) end | ||
function _recipe_after_user!(plt, plotattributes, args) end | ||
function _recipe_after_plot!(plt, plotattributes, args) end | ||
function _recipe_after_series!(plt, plotattributes, args, series_ind) end | ||
function _recipe_finish!(plt, plotattributes, args) end | ||
## | ||
# Here comes the specification of when which recipe is processed. | ||
# It contains functions before and after every stage for interaction with the plotting package. | ||
|
||
function recipe_pipeline(plt, # frontend specific representation of a plot | ||
function recipe_pipeline!(plt, # frontend specific representation of a plot | ||
plotattributes, # current state of recipe keywords | ||
args, # set of arguments passed by the user | ||
) | ||
_recipe_init(plt, plotattributes, args) | ||
_recipe_init!(plt, plotattributes, args) | ||
kw_list = _process_userrecipes(plt, plotattributes, args) | ||
_recipe_after_user(plt, plotattributes, args) | ||
_recipe_after_user!(plt, plotattributes, args) | ||
kw_list = _process_plotrecipes(plt, plotattributes, args) | ||
_recipe_after_plot(plt, plotattributes, args) | ||
_recipe_after_plot!(plt, plotattributes, args) | ||
for (series_ind, series) in enumerate(series_list) | ||
kw_list = _process_seriesrecipe(plt, plotattributes) | ||
_recipe_after_series(plt, plotattributes, series_ind) | ||
_recipe_after_series!(plt, plotattributes, series_ind) | ||
end | ||
_recipe_finish((plt, plotattributes, args) | ||
_recipe_finish!((plt, plotattributes, args) | ||
end |