davidfokkema / artist

Artist makes beautiful plots
http://davidfokkema.github.io/artist/
GNU General Public License v3.0
12 stars 2 forks source link

Apply series options to corresponding errors #35

Closed 153957 closed 3 months ago

153957 commented 8 years ago

Give error bars the same style as series data.

This at least gives them the same color, but may cause problems if you use for instance dashed lines..

Please review carefully before merging.

153957 commented 8 years ago

@davidfokkema any ideas on this? Perhaps add additional argument to plotting; errorstyle?

davidfokkema commented 8 years ago

Maybe errorstyle is better. It is a bit more work, though. My personal preference is to use color, or shades of color, to distinguish between datasets. In that case, giving error bars the same style as the data is exactly what I want. Did you encounter a situation in which you wanted to separate the two? Why not implement this as is, and introduce errorstyle only when needed?

davidfokkema commented 8 years ago

Any further thoughts on this?

153957 commented 8 years ago

This currently does not work for scatter plots, the markstyle is not passed to style the errors.

153957 commented 8 years ago

Also; I agree with your preferences that almost always the errors and data points/line should have the same color. But as noted, this is more difficult for scatter plots, since it hides lines by default and the markstyle is packed in a mark options group..

153957 commented 3 months ago

This is not the best solution.