01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

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.

36 SET-SHOW gnuplot 4.0 61<br />

36.12 Contour<br />

set contour enables contour drawing for surfaces. This option is available for splot only.<br />

Syntax:<br />

set contour {base | surface | both}<br />

unset contour<br />

show contour<br />

The three options specify where to draw the contours: base draws the contours on the grid base where<br />

the x/ytics are placed, surface draws the contours on the surfaces themselves, and both draws the<br />

contours on both the base and the surface. If no option is provided, the default is base.<br />

See also set cntrparam (p. 58) for the parameters that affect the drawing of contours, and set clabel<br />

(p. 58) for control of labelling of the contours.<br />

The surface can be switched off (see set surface (p. 99)), giving a contour-only graph. Though it is<br />

possible to use set size to enlarge the plot to fill the screen, more control over the output format can<br />

be obtained by writing the contour information to a file, and rereading it as a 2-d datafile plot:<br />

unset surface<br />

set contour<br />

set cntrparam ...<br />

set term table<br />

set out ’filename’<br />

splot ...<br />

set out<br />

# contour info now in filename<br />

set term <br />

plot ’filename’<br />

In order to draw contours, the data should be organized as "grid data". In such a file all the points for<br />

a single y-isoline are listed, then all the points for the next y-isoline, and so on. A single blank line (a<br />

line containing no characters other than blank spaces and a carriage return and/or a line feed) separates<br />

one y-isoline from the next. See also splot datafile (p. 155).<br />

If contours are desired from non-grid data, set dgrid3d can be used to create an appropriate grid. See<br />

set dgrid3d (p. 63) for more information. See also<br />

and<br />

contours demo (contours.dem)<br />

contours with user defined levels demo (discrete.dem).<br />

36.13 Data style<br />

This form of the command is deprecated. Please see set style data (p. 93).<br />

36.14 Datafile<br />

The set datafile command options control interpretation of fields read from input data files by the<br />

plot, splot, and fit commands. Three such options are currently implemented.<br />

36.14.1 Set datafile missing<br />

The set datafile missing command allows you to tell gnuplot what character string is used in a data<br />

file to denote missing data. Exactly how this missing value will be treated depends on the using specifier<br />

of the plot or splot command.<br />

Syntax:

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

Saved successfully!

Ooh no, something went wrong!