Gadfly.jl icon indicating copy to clipboard operation
Gadfly.jl copied to clipboard

Add xstd aesthetics to errobar ?

Open jonathanBieler opened this issue 5 years ago • 2 comments

Typically when using Geom.errorbar you end up doing something like :

y = y, ymin = y .- ysd, ymax = y .+ ysd

Which is a bit tedious, I think it would be nice to add a x_std aesthetics such that you could do :

y =  y, y_std = sd

instead.

If you agree and it's not to hard to do I could try to prepare a PR.

jonathanBieler avatar Feb 11 '20 09:02 jonathanBieler

Similar to #1307. Would you use the Measurements.jl package, if Gadfly supported it?

Mattriks avatar Feb 11 '20 11:02 Mattriks

That would be even better yes, if that can be implemented without the stat.measurement part (i.e. just plot(x=1:10, y=y, Geom.point, Geom.errorbar)).

jonathanBieler avatar Feb 11 '20 13:02 jonathanBieler