Merge pull request #2242 from BeastyBlacksmith/bbs/adapted_grid-change

fix multiplot of functions
This commit is contained in:
Daniel Schwabeneder 2019-11-08 12:57:03 +01:00 committed by GitHub
commit a0e0c2c950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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