fix for plotting function; closes #291
This commit is contained in:
parent
aa64a0d3ce
commit
85f91b9075
@ -252,6 +252,7 @@ const _suppress_warnings = Set{Symbol}([
|
|||||||
:subplot_index,
|
:subplot_index,
|
||||||
:series_plotindex,
|
:series_plotindex,
|
||||||
:link,
|
:link,
|
||||||
|
:plot_object,
|
||||||
])
|
])
|
||||||
|
|
||||||
# add defaults for the letter versions
|
# add defaults for the letter versions
|
||||||
|
|||||||
@ -231,6 +231,8 @@ function _plot!(plt::Plot, d::KW, args...)
|
|||||||
# _update_subplot_args(plt, sp, d, idx)
|
# _update_subplot_args(plt, sp, d, idx)
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
d[:plot_object] = plt
|
||||||
|
|
||||||
# the grouping mechanism is a recipe on a GroupBy object
|
# 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
|
# we simply add the GroupBy object to the front of the args list to allow
|
||||||
# the recipe to be applied
|
# the recipe to be applied
|
||||||
|
|||||||
@ -270,7 +270,10 @@ end
|
|||||||
# process_inputs(plt, d, f, xmin(plt), xmax(plt))
|
# process_inputs(plt, d, f, xmin(plt), xmax(plt))
|
||||||
# end
|
# 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
|
||||||
|
|
||||||
#
|
#
|
||||||
# # --------------------------------------------------------------------
|
# # --------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user