Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color of errorbars with plots.jl

Tags:

julia

plots.jl

I'm using the package Plots with the pyplot backend. By default, errorbars are black. How can I change their color? I want to set it to the same color as the line itself (which should be the default behaviour imho).

using Plots
plot(1:3,1:3,yerr=0.1) # produces a blue line with black errorbars
like image 839
T. Lepage Avatar asked May 29 '17 10:05

T. Lepage


1 Answers

markerstrokecolor/mscsets the color. Normally you'd put points on the plot as well, rather than just the line with error bars, the default is thus to have the stroke around each point in the same color as the error bar. If you feel that another default is better you'd be welcome to open an issue on Plots.

like image 108
Michael K. Borregaard Avatar answered Oct 24 '22 19:10

Michael K. Borregaard