Peaceful
Peaceful

Reputation: 5450

Adjusting position of individual plots in gnuplot multiplot

I am using multiplot to plot four graphs. My code is given below

set term postscript eps enhanced color
set pm3d map
set pm3d corners2color c1
set size square
set out 'defect2.eps'
unset colorbox
set colorbox horiz user origin 0.1,0.7 size 0.8,0.02
set cbrange [-1.6:0]
set xtics 25
set ytics 25
set lmargin at screen 0.1
set rmargin at screen 0.9
set multiplot layout 1,4
set xlabel "i" font "Times-italic,20"
set ylabel "j" font "Times-italic,20"
spl 'defect.dat' notitle
unset ylabel
spl 'defect_2.dat' notitle
spl 'defect_3.dat' notitle
spl 'defect_4.dat' notitle
unset multiplot
set out

This produces a following plot

defect

However, individual plots in the picture are not properly placed. I cannot see ylabel for the first plot as it is hidden behind the screen whereas there are large blank gaps between those plots. Is there any way to reduce these gaps, increase size of these plots and show the labels properly?

Thanks in advance.

Upvotes: 1

Views: 2357

Answers (1)

sweber
sweber

Reputation: 2976

The Problem is your margin setting. The margin defines the size of the white stripe between the box containing the plot and the border of the window.

This means, tic and axis labels are printet on the Martin area! And your 10% of window width is not enough, so the labels are clipped.

So you can adjust the margins to shift all plots more to the left or adjust label font sites and offsets (Miguel's comment).

Upvotes: 2

Related Questions