GNUPlot Manual
GNUPlot Manual
GNUPlot Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
28 PLOT gnuplot 4.0 45<br />
(x, y, ydelta),<br />
(x, y, ylow, yhigh),<br />
(x, y, xdelta),<br />
(x, y, xlow, xhigh),<br />
(x, y, xdelta, ydelta), or<br />
(x, y, xlow, xhigh, ylow, yhigh).<br />
The x coordinate must be specified. The order of the numbers must be exactly as given above, though<br />
the using qualifier can manipulate the order and provide values for missing columns. For example,<br />
plot ’file’ with errorbars<br />
plot ’file’ using 1:2:(sqrt($1)) with xerrorbars<br />
plot ’file’ using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars<br />
The last example is for a file containing an unsupported combination of relative x and absolute y errors.<br />
The using entry generates absolute x min and max from the relative error.<br />
The y error bar is a vertical line plotted from (x, ylow) to (x, yhigh). If ydelta is specified instead of<br />
ylow and yhigh, ylow = y - ydelta and yhigh = y + ydelta are derived. If there are only two numbers<br />
on the record, yhigh and ylow are both set to y. The x error bar is a horizontal line computed in the<br />
same fashion. To get lines plotted between the data points, plot the data file twice, once with errorbars<br />
and once with lines (but remember to use the notitle option on one to avoid two entries in the key).<br />
Alternately, use the errorlines command (see errorlines (p. 45)).<br />
The error bars have crossbars at each end unless set bars is used (see set bars (p. 55) for details).<br />
If autoscaling is on, the ranges will be adjusted to include the error bars. See also<br />
errorbar demos.<br />
See plot using (p. 43), plot with (p. 47), and set style (p. 91) for more information.<br />
28.3 Errorlines<br />
Lines with error bars are supported for 2-d data file plots by reading one to four additional columns (or<br />
using entries); these additional values are used in different ways by the various errorlines styles.<br />
In the default situation, gnuplot expects to see three, four, or six numbers on each line of the data file<br />
— either<br />
(x, y, ydelta),<br />
(x, y, ylow, yhigh),<br />
(x, y, xdelta),<br />
(x, y, xlow, xhigh),<br />
(x, y, xdelta, ydelta), or<br />
(x, y, xlow, xhigh, ylow, yhigh).<br />
The x coordinate must be specified. The order of the numbers must be exactly as given above, though<br />
the using qualifier can manipulate the order and provide values for missing columns. For example,<br />
plot ’file’ with errorlines<br />
plot ’file’ using 1:2:(sqrt($1)) with xerrorlines<br />
plot ’file’ using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines<br />
The last example is for a file containing an unsupported combination of relative x and absolute y errors.<br />
The using entry generates absolute x min and max from the relative error.<br />
The y error bar is a vertical line plotted from (x, ylow) to (x, yhigh). If ydelta is specified instead of<br />
ylow and yhigh, ylow = y - ydelta and yhigh = y + ydelta are derived. If there are only two numbers<br />
on the record, yhigh and ylow are both set to y. The x error bar is a horizontal line computed in the<br />
same fashion.<br />
The error bars have crossbars at each end unless set bars is used (see set bars (p. 55) for details).<br />
If autoscaling is on, the ranges will be adjusted to include the error bars.<br />
See plot using (p. 43), plot with (p. 47), and set style (p. 91) for more information.