gnuplot> set term aqua size 8,4 solid gnuplot> set multiplot layout 2,2 multiplot> plot sin(x) t "sin(x)" multiplot> plot cos(x) t "cos(x)" multiplot> plot tan(x) t "tan(x)" multiplot> plot erf(x) t "erf(x)" multiplot> unset multiplot
set term epslatex standalone color solid size 8,4 set output "demo.tex" set multiplot set grid
set title "A smaller plot in a big plot"
set size 1,1 set origin 0,0 set xrange [-10:10] set yrange [-0.8:1.5]
#plot the square set arrow from -0.3,0.5 to 0.,0.7 lw 1 back filled set arrow from -1,0.6 to 1,0.6 lw 1 front nohead set arrow from -1,-0.6 to 1,-0.6 lw 1 front nohead set arrow from -1,-0.6 to -1,0.6 lw 1 front nohead set arrow from 1,-0.6 to 1,0.6 lw 1 front nohead
plot cos(x)*0.5 w l lt 3 t "cos(x)*0.5"
unset arrow unset title
set size 0.35,0.35 set origin 0.4,0.55 set xrange [-1:1] set yrange [-0.6:0.6] plot cos(x)*0.5 w l lt 6 t "cos(x)*0.5"