gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
150 <strong>gnuplot</strong> 4.3 72 SPLOT<br />
72 Splot<br />
splot is the command for drawing 3D plots (well, actually projections on a 2D surface, but you knew<br />
that). It can create a plot from functions or data read from files in a manner very similar to the plot<br />
command. splot provides only a single x, y, and z axis; there is no equivalent to the x2 and y2 secondary<br />
axes provided by plot.<br />
See plot (p. 64) for features common to the plot (p. 64) command; only differences are discussed in<br />
detail here.<br />
Syntax:<br />
splot {}<br />
{}<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. 139) and set ticslevel (p. 136) 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. 118).<br />
72.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 }<br />
{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, <strong>gnuplot</strong><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.