14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

52 <strong>gnuplot</strong> 4.3 48 3D (SURFACE) PLOTS<br />

The xyerrorlines style is only relevant to 2D data<br />

plots. xyerrorlines is like linespoints, except that<br />

horizontal and vertical error bars are also drawn. At<br />

each point (x,y), lines are drawn from (x,y-ydelta) to<br />

(x,y+ydelta) and from (x-xdelta,y) to (x+xdelta,y)<br />

or from (x,ylow) to (x,yhigh) and from (xlow,y)<br />

to (xhigh,y), depending upon the number of data<br />

columns provided. A tic mark is placed at the ends<br />

of the error bar (unless set bars is used — see<br />

set bars (p. 88) for details). Either 4 or 6 input<br />

columns are required.<br />

4 columns: x y xdelta ydelta<br />

6 columns: x y xlow xhigh ylow yhigh<br />

with xyerrorlines<br />

If data are provided in an unsupported mixed form, the using filter on the plot command should be<br />

used to set up the appropriate form. For example, if the data are of the form (x,y,xdelta,ylow,yhigh),<br />

then you can use<br />

plot ’data’ using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines<br />

47 Yerrorlines<br />

The yerrorlines (or errorlines) style is only relevant<br />

to 2D data plots. yerrorlines is like linespoints,<br />

except that a vertical error line is also<br />

drawn. At each point (x,y), a line is drawn from<br />

(x,y-ydelta) to (x,y+ydelta) or from (x,ylow) to<br />

(x,yhigh), depending on how many data columns are<br />

provided. A tic mark is placed at the ends of the<br />

error bar (see set bars (p. 88) for details). Either<br />

3 or 4 input columns are required.<br />

3 columns: x y ydelta<br />

4 columns: x y ylow yhigh<br />

with yerrorlines<br />

See also<br />

errorbar demo.<br />

48 3D (surface) plots<br />

Surface plots are generated using the splot command<br />

rather than the plot command. The style<br />

with lines draws a surface made from a grid of<br />

lines. Solid surfaces can be drawn using the style<br />

with pm3d. Usually the surface is displayed at<br />

some arbitrary viewing angle, such that it clearly<br />

represents a 3D surface. In this case the X, Y, and<br />

Z axes are all visible in the plot. The illusion of 3D is<br />

enhanced by choosing hidden line removal or depthsorted<br />

surface elements. See hidden3d (p. 104)<br />

and the depthorder (p. 121) option of set pm3d<br />

(p. 118).<br />

Z axis<br />

3D surface plot with hidden line removal<br />

X axis<br />

Y axis

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

Saved successfully!

Ooh no, something went wrong!