问题
I've produced the following image:
where there is this little blank space between the pm3d map and the two side profiles and it's kinda annoying. I suspect it may be due to the profiles (the gaussians) being slighly large, but, isn't that controlled by the margins definements?
The gnuplot code is:
set encoding utf8
set term x11
set terminal pngcairo dashed nocrop size 640,560 enhanced solid color font 'Helvetica,12' butt dashed
set output "E_vs_eta_big_N4.png"
set multiplot
set lmargin screen 0.20
set rmargin screen 0.85
set bmargin screen 0.25
set tmargin screen 0.90
set hidden3d
set pm3d map
#set palette rgbformulae 33,13,10
#set samples 50, 50
#set isosamples 50, 50
set xrange [ -3 : 3 ]
set yrange [ -3 : 3 ]
#set cbrange [ 0 : 1.000 ]
#set cbtics -0.25,0.25,1
set cblabel "{/Symbol h}"
unset xtics
unset ytics
unset key
splot "gfock_pair_correlation_N4_L0.txt" u 1:2:6
unset pm3d
set lmargin screen 0.10
set rmargin screen 0.20
set ytics
set yrange [ -3.00 : 3.00 ]
set ylabel "y"
unset xlabel
set xrange [*:*]
set surface
plot "gfock_pair_correlation_N4_L0.txt" u 6:2 w lines lc rgb "green"
set lmargin screen 0.20
set rmargin screen 0.85
set bmargin screen 0.15
set tmargin screen 0.25
set xrange [ -3.00 : 3.00 ]
set yrange [ * : * ]
unset ylabel
set xlabel "x"
set xtics
unset ytics
plot "gfock_pair_correlation_N4_L0.txt" u 1:6
unset multiplot
set term x11
来源:https://stackoverflow.com/questions/37653849/annoying-spacing-in-gnuplot-pm3d-color-maps