add back single function recipe; closes #401

This commit is contained in:
Thomas Breloff 2016-07-25 15:40:28 -04:00
parent 3ae8dc9bd7
commit ee68798de3
2 changed files with 9 additions and 8 deletions

View File

@ -148,7 +148,7 @@ end
# a list of series KW dicts. # a list of series KW dicts.
# 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
function _plot!(plt::Plot, d::KW, args::Tuple) function _plot!(plt::Plot, d::KW, args::Tuple)
# d[:plot_object] = plt d[:plot_object] = plt
# -------------------------------- # --------------------------------
# "USER RECIPES" # "USER RECIPES"

View File

@ -273,14 +273,15 @@ end
end end
end end
#
#
# # function without range... use the current range of the x-axis
# @recipe function f(f::FuncOrFuncs)
# plt = d[:plot_object] # function without range... use the current range of the x-axis
# f, xmin(plt), xmax(plt)
# end @recipe function f(f::FuncOrFuncs)
plt = d[:plot_object]
xmin,xmax = axis_limits(plt[1][:xaxis])
f, xmin, xmax
end
# #
# # -------------------------------------------------------------------- # # --------------------------------------------------------------------