Skip to content

Commit

Permalink
add after_series hook
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed Mar 15, 2020
1 parent f9b038d commit 5e68f09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RecipesPipeline/src/pipeline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ function _recipe_init!(plt, plotattributes, args) end
function _recipe_after_user!(plt, plotattributes, args) end
function _recipe_after_plot!(plt, plotattributes, kw_list) end
function _recipe_before_series!(plt, kw, kw_list) kw end # this must always return the kwargs
function _recipe_after_series!(plt, kw, series_ind) end
function _recipe_finish!(plt, plotattributes, args) plt end

##
Expand Down Expand Up @@ -45,9 +46,10 @@ function recipe_pipeline!(plt, # frontend specific representation o
# --------------------------------
# "SERIES RECIPES"
# --------------------------------
for kw in kw_list
for (series_ind, kw) in enumerate(kw_list)
series_attr = _recipe_before_series!(plt, kw, kw_list)
_process_seriesrecipe(plt, series_attr, type_aliases=type_aliases)
_recipe_after_series!(plt, kw, series_ind)
end

_recipe_finish!(plt, plotattributes, args)
Expand Down

0 comments on commit 5e68f09

Please sign in to comment.