14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

60 PLOT <strong>gnuplot</strong> 4.3 77<br />

60.4 Errorlines<br />

Lines with error bars are supported for 2D 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, <strong>gnuplot</strong> 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. 88) for details).<br />

If autoscaling is on, the ranges will be adjusted to include the error bars.<br />

See plot using (p. 74), plot with (p. 79), and set style (p. 130) for more information.<br />

60.5 Parametric<br />

When in parametric mode (set parametric) mathematical expressions must be given in pairs for plot<br />

and in triplets for splot.<br />

Examples:<br />

plot sin(t),t**2<br />

splot cos(u)*cos(v),cos(u)*sin(v),sin(u)<br />

Data files are plotted as before, except any preceding parametric function must be fully specified before<br />

a data file is given as a plot. In other words, the x parametric function (sin(t) above) and the y<br />

parametric function (t**2 above) must not be interrupted with any modifiers or data functions; doing<br />

so will generate a syntax error stating that the parametric function is not fully specified.<br />

Other modifiers, such as with and title, may be specified only after the parametric function has been<br />

completed:<br />

See also<br />

plot sin(t),t**2 title ’Parametric example’ with linespoints<br />

Parametric Mode Demos.<br />

60.6 Ranges<br />

The optional ranges specify the region of the graph that will be displayed.<br />

Syntax:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!