There are two methods to make a drawing which contains several
figures. The first one is to use multiplot . The other
way is to use the EPS format, then those files in this format are
gathered by TeX or some drawing tools. Here we explain the
multiplot command.

With the command set multiplot you enter the multi-plot
mode, and the gnuplot command prompt becomes multiplot> .
In this mode a new figure overlaps the old one. The next example
shows the overlapping plot of three functions, y=x, y=x*x, and
y=x*x*x.

Gnuplot determines the range, tics, and size of figure automatically
for each plotting, then the plot gets into a mess. Let's try to fix
the X and Y ranges [-10:10], and erase the legends by no key
command since they overlap.

Well, it's much better. But such thing can be done by usual plotting
procedures. With the multiplot command you can draw
several figures in one page by moving the origin of each figure.
To do that, use set size and set origin
commands.

As an example of multiplot, four Lissajous' figures are plotted in
one drawing. The Lissajous's figure can be drawn by a parametric
representaion of two functions, x=sin(n*t) and y=sin(m*t). Here we
draw the case of n=3,5 and m=2,4.

In order to make those figures the same size, the tics are erased by
noxtic and noytic , and the four margins are
set to be zero.

Usually it is difficult to adjust the position of each figure
appropriately. There is no easy way to determine the values of
origin , and you have to do
it by "trial-and-error". When your figure has tics and labels, the
size of figure also depends on them. The adjustment of the
positions becomes very severe for this case.

This gives five grids at the minor tics between the major ones. You
can specify the grid position by xtics ... mytics
options of the set grid command. If set grid
noxtics noytics mxtics mytics , the grids appear at the minor
tics position only (but I guess no one likes such a graph
though...)