set size, origin, lmargin and rmargin by hand:
reset
set lmargin 6
set rmargin 15
set key rmargin
set multiplot
set size 0.55,1.0
set origin 0.0,0.0
plot sin(x) notitle
set origin 0.45,0.0
plot sin(x)
unset multiplot
or with gnuplot 4.3-cvs:
reset
set key rmargin
set multiplot
set lmargin at screen 0.06
set rmargin at screen 0.42
plot sin(x) notitle
set lmargin at screen 0.49
set rmargin at screen 0.85
plot sin(x)
unset multiplot
Schlupp wrote:
>
> Hi,
>
> I am trying to plot two plots side by side with one key for both plots.
> Both plots should be of same size, the key outside the right plot. Now I'm
> not quite sure how to handle this. My first guess was
> 'set multiplot layout 1,2'
> but the result is in the attached jpg. The right plot has to share the
> width with the key, so the plots are not equally sized.
> http://www.nabble.com/file/p24716804/2plots.jpeg 2plots.jpeg
> My next guess was to set the size parameter, but the result was a
> catastrophe, as I'm not familiar with it.
> The final terminal should be pslatex, but x11 would be fine to have a
> quick view at it.
>
>
> If someone has an idea how to handle this I'd be happy.
> Reinhard
>
--
View this message in context: http://www.nabble.com/Help-needed-for-plotting-multiple-plots-side-by-side-tp24716804p24719846.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|