I'm trying to put two figures side by side using gnuplot with multiplot.
I want the resulting image to be rectangular so I use set size 2, 1. I also set the set multiplot layout 1, 2 option. However, the resulting image only uses the left part of the available space. Any help will be appreciated.
Thanks
Ahmet
Here is the resulting image
http://tinypic.com/r/33mlz04/6
And below is the gnuplot commands I'm using.
set terminal postscript eps color enhanced set output 'figure.eps'; set size 2,1; set multiplot layout 1, 2 ; set title "Figure 1"; plot "data1.txt" set title "Figure 1"; plot "data2.txt" unset multiplot
Although I'm not very sure, with some trial and error I have solved it
set terminal postscript eps color enhanced set output 'eps/image.eps'; set size 1,0.5; set multiplot layout 1, 2 ; set title "Figure 1"; set size 0.5,0.5; plot "data/data1.txt" set title "Figure 1"; set size 0.5,0.5; plot "data/data2.txt" unset multiplot
Best Answer
Try something like:
When you set the size on the terminal specification line, that determines the actual size of the plot canvas (in inches in this case). When you use
set size
on a separate line, that sets the size of the plot in relative units of the canvas size. This is different in older versions of gnuplot. For perhaps a better explanation, tryhelp set size
in gnuplot.