JuliaPlots / RecipesPipeline.jl

Utilities for processing recipes
http://juliaplots.org/RecipesPipeline.jl/dev/
MIT License
17 stars 17 forks source link

Use NaNMath log functions #61

Closed mcabbott closed 4 years ago

mcabbott commented 4 years ago

This means that log-scale plots will skip negative points, instead of giving an error. The following should work:

using Plots
plot(cumsum(randn(1000,4), dims=1), yaxis=(:log10, [0.1, :auto]))

The axes will still not be set automatically to fit only positive points, but it's a start.

ref https://github.com/JuliaPlots/Plots.jl/issues/1959

mkborregaard commented 4 years ago

Nice!