fix for plotting function; closes #291

This commit is contained in:
Thomas Breloff 2016-06-01 14:45:35 -05:00
parent aa64a0d3ce
commit 85f91b9075
3 changed files with 7 additions and 1 deletions

View File

@ -252,6 +252,7 @@ const _suppress_warnings = Set{Symbol}([
:subplot_index,
:series_plotindex,
:link,
:plot_object,
])
# add defaults for the letter versions

View File

@ -231,6 +231,8 @@ function _plot!(plt::Plot, d::KW, args...)
# _update_subplot_args(plt, sp, d, idx)
# end
d[:plot_object] = plt
# the grouping mechanism is a recipe on a GroupBy object
# we simply add the GroupBy object to the front of the args list to allow
# the recipe to be applied

View File

@ -270,7 +270,10 @@ end
# process_inputs(plt, d, f, xmin(plt), xmax(plt))
# end
@recipe f(f::FuncOrFuncs) = f, xmin(plt), xmax(plt)
@recipe function f(f::FuncOrFuncs)
plt = d[:plot_object]
f, xmin(plt), xmax(plt)
end
#
# # --------------------------------------------------------------------