Plot using Error Bars


The plot below shows error bars for some of the data points.

Error bars can be specified from within the data file or programmatically by calling Java methods.

The error bars below are specified in the data file with a 4 number line:

x,y,ylow,yhigh
The numbers can be separated by white space or commas.


If your browser recognized the applet tag, you would see an applet here.

From within Java, error bars can be added by calling the addPointWithErrorBars() method in the Plot class. The error bars can be erased by calling the erasePoint() Plot class method.

The error bar data is stored inside the PlotPoint class.


Up to the Example index - Back to a JavaScript Interface to Ptplot - Forward to a plot using logarithmic axes
Copyright © 1998, The Regents of the University of California. All rights reserved.
Last updated: $Date: 1998/08/23 10:51:34 $, comments to: cxh@eecs.berkeley.edu