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 79<br />

For some terminals, no plot is displayed until the command unset multiplot is given, which causes the<br />

entire page to be drawn and then returns gnuplot to its normal single-plot mode. For other terminals,<br />

each separate plot command produces a plot, but the screen may not be cleared between plots.<br />

Any labels or arrows that have been defined will be drawn for each plot according to the current size<br />

and origin (unless their coordinates are defined in the screen system). Just about everything else that<br />

can be set is applied to each plot, too. If you want something to appear only once on the page, for<br />

instance a single time stamp, you’ll need to put a set time/unset time pair around one of the plot,<br />

splot or replot commands within the set multiplot/unset multiplot block.<br />

The commands set origin and set size must be used to correctly position each plot; see set origin<br />

(p. 80) and set size (p. 91) for details of their usage.<br />

Example:<br />

set size 0.7,0.7<br />

set origin 0.1,0.1<br />

set multiplot<br />

set size 0.4,0.4<br />

set origin 0.1,0.1<br />

plot sin(x)<br />

set size 0.2,0.2<br />

set origin 0.5,0.5<br />

plot cos(x)<br />

unset multiplot<br />

displays a plot of cos(x) stacked above a plot of sin(x). Note the initial set size and set origin.<br />

While these are not always required, their inclusion is recommended. Some terminal drivers require<br />

that bounding box information be available before any plots can be made, and the form given above<br />

guarantees that the bounding box will include the entire plot array rather than just the bounding box<br />

of the first plot.<br />

set size and set origin refer to the entire plotting area used for each plot. If you want to have the<br />

axes themselves line up, you can guarantee that the margins are the same size with the set margin<br />

commands. See set margin (p. 77) for their use. Note that the margin settings are absolute, in<br />

character units, so the appearance of the graph in the remaining space will depend on the screen size of<br />

the display device, e.g., perhaps quite different on a video display and a printer. See also<br />

multiplot demo (multiplt.dem).<br />

36.38 Mx2tics<br />

Minor tic marks along the x2 (top) axis are controlled by set mx2tics. Please see set mxtics (p. 79).<br />

36.39 Mxtics<br />

Minor tic marks along the x axis are controlled by set mxtics. They can be turned off with unset<br />

mxtics. Similar commands control minor tics along the other axes.<br />

Syntax:<br />

set mxtics { | default}<br />

unset mxtics<br />

show mxtics<br />

The same syntax applies to mytics, mztics, mx2tics, my2tics and mcbtics.<br />

is the number of sub-intervals (NOT the number of minor tics) between major tics (the default<br />

for a linear axis is either two or five depending on the major tics, so there are one or four minor tics<br />

between major tics). Selecting default will return the number of minor ticks to its default value.<br />

If the axis is logarithmic, the number of sub-intervals will be set to a reasonable number by default<br />

(based upon the length of a decade). This will be overridden if is given. However the usual

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

Saved successfully!

Ooh no, something went wrong!