gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
70 SET-SHOW <strong>gnuplot</strong> 4.3 115<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 multiplot title is separate from the individual plot titles, if any. Space is reserved for it at the top<br />
of the page, spanning the full width of the canvas.<br />
The commands set origin and set size must be used to correctly position each plot if no layout is<br />
specified or if fine tuning is desired. See set origin (p. 117) and set size (p. 129) for details of their<br />
usage.<br />
Example:<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 />
This displays a plot of cos(x) stacked above a plot of sin(x).<br />
set size and set origin refer to the entire plotting area used for each plot. Please also see set term<br />
size (p. 19). If you want to have the axes themselves line up, you can guarantee that the margins are<br />
the same size with the set margin commands. See set margin (p. 112) for their use. Note that the<br />
margin settings are absolute, in character units, so the appearance of the graph in the remaining space<br />
will depend on the screen size of the display device, e.g., perhaps quite different on a video display and<br />
a printer.<br />
With the layout option you can generate simple multiplots without having to give the set size and set<br />
origin commands before each plot: Those are generated automatically, but can be overridden at any<br />
time. With layout the display will be divided by a grid with rows and columns. This<br />
grid is filled rows first or columns first depending on whether the corresponding option is given in the<br />
multiplot command. The stack of plots can grow downwards or upwards. Default is rowsfirst and<br />
downwards.<br />
Each plot can be scaled by scale and shifted with offset; if the y-values for scale or offset are omitted,<br />
the x-value will be used. unset multiplot will turn off the automatic layout and restore the values of<br />
set size and set origin as they were before set multiplot layout.<br />
Example:<br />
set size 1,1<br />
set origin 0,0<br />
set multiplot layout 3,2 columnsfirst scale 1.1,0.9<br />
[ up to 6 plot commands here ]<br />
unset multiplot<br />
The above example will produce 6 plots in 2 columns filled top to bottom, left to right. Each plot will<br />
have a horizontal size of 1.1/2 and a vertical size of 0.9/3.<br />
See also<br />
multiplot demo (multiplt.dem)<br />
70.39 Mx2tics<br />
Minor tic marks along the x2 (top) axis are controlled by set mx2tics. Please see set mxtics (p. 116).