One of the features of the Plot class is that the data can show upper and lower error bars. An example is below.
Error bars can be specified from within the data file or by calling Java methods. The error bars above are specified in the data file with a 4 number line:
x,y,ylow,yhighThe numbers can be separated by white space or commas. This is the "old syntax," but the PlotML syntax also supports error bars. A point with error bars is given by a element of the following form:
<point x="0.1" y="1.0" lowErrorBar="0.9" highErrorBar="1.1"/>
From within Java, error bars can be added by calling the addPointWithErrorBars() method in the Plot class.