Syntax:
set multiplot set nomultiplot
For some terminals, no plot is displayed until the command set nomultiplot is given, which causes the entire page to be drawn and then returns gnuplot to its normal single-plot mode. For other terminals, each separate plot command produces a plot.
The commands set origin and set size must be used to correctly position each plot; see set origin and set size for details of their usage.
Example:
set size 0.7,0.7 set origin 0.1,0.1 set multiplot set size 0.4,0.4 set origin 0.1,0.1 plot sin(x) set size 0.2,0.2 set origin 0.5,0.5 plot cos(x) set nomultiplot
displays a plot of cos(x) stacked above a plot of sin(x). Note the initial set size and set origin. While these are not always required, their inclusion is recommended. Some terminal drivers require that bounding box information be available before any plots can be made, and the form given above guarantees that the bounding box will include the entire plot array rather than just the bounding box of the first plot.