Errorbars color with plots.jl

I am using batch plots with pyplot backend. By default, errors are black. How can I change their color? I want to set it to the same color as the string itself (this should be imho default behavior).

using Plots
plot(1:3,1:3,yerr=0.1) # produces a blue line with black errorbars

      

+3


source to share


1 answer


markerstrokecolor

/ msc

sets the color. Typically, you also plotted points on the graph, not just on the line with errors, so by default each point should have a stroke in the same color as the error bar. If you think the other default is better, you can open the issue on plots.



+1


source







All Articles