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.
38 SPLOT gnuplot 4.0 155<br />
splot {}<br />
| "" {datafile-modifiers}}<br />
{} {with }<br />
{, {definitions,} ...}<br />
where either a or the name of a data file enclosed in quotes is supplied. The function can<br />
be a mathematical expression, or a triple of mathematical expressions in parametric mode.<br />
By default splot draws the xy plane completely below the plotted data. The offset between the lowest<br />
ztic and the xy plane can be changed by set ticslevel. The orientation of a splot projection is controlled<br />
by set view. See set view (p. 145) and set ticslevel (p. 142) for more information.<br />
The syntax for setting ranges on the splot command is the same as for plot. In non-parametric mode,<br />
the order in which ranges must be given is xrange, yrange, and zrange. In parametric mode, the<br />
order is urange, vrange, xrange, yrange, and zrange.<br />
The title option is the same as in plot. The operation of with is also the same as in plot, except that<br />
the plotting styles available to splot are limited to lines, points, linespoints, dots, and impulses;<br />
the error-bar capabilities of plot are not available for splot.<br />
The datafile options have more differences.<br />
See also show plot (p. 82).<br />
38.1 Data-file<br />
As for plot, discrete data contained in a file can be displayed by specifying the name of the data file,<br />
enclosed in quotes, on the splot command line.<br />
Syntax:<br />
splot ’’ {binary | matrix}<br />
{index }<br />
{every }<br />
{using }<br />
The special filenames "" and "-" are permitted, as in plot.<br />
In brief, binary and matrix indicate that the data are in a special form, index selects which data sets<br />
in a multi-data-set file are to be plotted, every specifies which datalines (subsets) within a single data<br />
set are to be plotted, and using determines how the columns within a single record are to be interpreted.<br />
The options index and every behave the same way as with plot; using does so also, except that the<br />
using list must provide three entries instead of two.<br />
The plot options thru and smooth are not available for splot, but cntrparam and dgrid3d provide<br />
limited smoothing capabilities.<br />
Data file organization is essentially the same as for plot, except that each point is an (x,y,z) triple. If<br />
only a single value is provided, it will be used for z, the datablock number will be used for y, and the<br />
index of the data point in the datablock will be used for x. If two or four values are provided, gnuplot<br />
uses the last value for calculating the color in pm3d plots. Three values are interpreted as an (x,y,z)<br />
triple. Additional values are generally used as errors, which can be used by fit.<br />
Single blank records separate datablocks in a splot datafile; splot treats datablocks as the equivalent<br />
of function y-isolines. No line will join points separated by a blank record. If all datablocks contain the<br />
same number of points, gnuplot will draw cross-isolines between datablocks, connecting corresponding<br />
points. This is termed "grid data", and is required for drawing a surface, for contouring (set contour)<br />
and hidden-line removal (set hidden3d). See also splot grid data (p. 157).<br />
It is no longer necessary to specify parametric mode for three-column splots.<br />
38.1.1 Binary<br />
splot can read binary files written with a specific format (and on a system with a compatible binary file<br />
representation.)