Making Multiple Plots on the Same Page
Ordinarily the plot command erases the display before drawing
the new graph. To draw multiple boxes and graphs on the same output
page, use the command
set multiplot
Any subsequent plot commands will then be overlaid on one
another.
The following commands are commonly used in the multiplot
environment.
- set origin x,y
- Set the origin (bottom left corner) of the next plot. The
coordinate system used for x,y is such that the bottom left
of the display is (0,0), and the top right is (1,1).
- set size xscale,yscale
- Set the size of the next box. if yscale is omitted, it
is set to xscale. Scaling is relative to the standard box
that almost fills the display.
- set nomultiplot
- Terminate the process of "accumulating" plots. The next
plot command will erase the screen.
EXAMPLE:
set multiplot
set size 0.5
set origin 0,0
plot 'data1' every 3 using 1:3 with points
set origin 0.4,0.5
set size 0.4
plot 'data2' lt 3
set origin 0.6,0.1
splot 'data4' every 5 lt 4
set nomultiplot
Note that the prompt conveniently changes to
multiplot>
to remind you when you are in this mode.