When using Plots.jl
, is there a straightforward way to plot on log scale with data which might contain zeros? When using matplotlib
in Python, these values are just filtered and an image is still rendered, but Plots.jl
throws an error. Do I just have to manually filter those values out?
I thought this was partly fixed, test case:
using Plots
plot(cumsum(randn(1000,4), dims=1), yaxis=(:log10, [0.1, :auto]))
If you don’t specify ylims
then it gets confused. (Ref: this issue?)
1 Like
https://github.com/JuliaPlots/Plots.jl/pull/2962 that issue should be fixed now
Yes, as soon as i specify the limits in that way, it works fine.