use adapted_grid from PlotUtilities for single functions

This commit is contained in:
Kristoffer Carlsson 2016-12-25 00:38:58 +01:00
parent a88d78a2e9
commit ec31898f25

View File

@ -343,8 +343,9 @@ end
@recipe function f(f::FuncOrFuncs)
plt = d[:plot_object]
xmin,xmax = axis_limits(plt[1][:xaxis])
f, xmin, xmax
xmin, xmax = axis_limits(plt[1][:xaxis])
xs = adapted_grid(f, (xmin, xmax))
xs, f
end
#