matplotlib4j icon indicating copy to clipboard operation
matplotlib4j copied to clipboard

Error Bar Support

Open JamesPeters98 opened this issue 5 years ago • 1 comments

Is there any way to add error bars to a plot?

Not sure if it is already possible, from a quick look it looks like an additional PlotBuilder is needed for 'errorbar'

So something like

plt.errorbar()
     .add(x,y)
     .xError(List<Number>)
     .yError(List<Number>)
     .label(label)

Where xError() can take a scalar, a single List or two Lists for symetric/non symetric errors etc.

As it is in the Matplotlib documentation https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.errorbar.html

JamesPeters98 avatar Mar 03 '20 15:03 JamesPeters98

Hi James! Thank you for the suggestion.

That's good to have. Let me see it.

sh0nk avatar Mar 10 '20 17:03 sh0nk