sh0nk / matplotlib4j

Matplotlib for java: A simple graph plot library for java, scala and kotlin with powerful python matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Bar Support

JamesPeters98 opened this issue · 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

Hi James! Thank you for the suggestion.

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