fix multiplot of functions

This commit is contained in:
Simon Christ 2019-11-08 11:55:34 +01:00
parent 62fe5d003e
commit 8b43f70ed4

View File

@ -519,10 +519,11 @@ end
end
@recipe function f(fs::AbstractArray{F}, xmin::Number, xmax::Number) where F<:Function
xscale, yscale = [get(plotattributes, sym, :identity) for sym=(:xscale,:yscale)]
xs = ys = Array{Any}(undef, length(fs))
xs = Array{Any}(undef, length(fs))
ys = Array{Any}(undef, length(fs))
for (i, (x, y)) in enumerate(_scaled_adapted_grid(f, xscale, yscale, xmin, xmax) for f in fs)
xs[i] = x
ys[i] = y
ys[i] = y
end
xs, ys
end