【发布时间】:2020-09-11 15:28:03
【问题描述】:
我想制作一个 gnuplot 多图,其中三个图相互重叠。到目前为止,它一直有效,当我不添加 x 轴标签并将每个 tmargin 和 bmargin 设置为相等时。但是当我在最低图下添加 x 轴标签和 xtics 时,该图的高度会缩小 - 如图所示。你知道如何在最低图下制作带有 x 轴标签的大小相等的图吗?
这是我的代码:
reset
set lmargin 9
set rmargin 3
unset key
set xrange [-1:41]
set boxwidth 0.4
set style fill solid noborder
set multiplot layout 3,1
set xtics format ""
set xtics 5
unset xlabel
set ytics 100
set logscale y
set format y "10^{%L}"
set key ins vert right top
set tmargin 0.8
set bmargin 0.5
set yrange [1:100000000]
#set ylabel "Photonen / s [Mio.]" offset 0,0,0 font ""
plot "300sLinienMit0.txt" u (($1)):($2/300) w boxes lc rgb "#6699ff" title "185,72 keV"
set xtics format ""
unset xlabel
set ytics 10
set tmargin 0.5
set bmargin 0.5
set yrange [1:1000]
set ylabel "Photonen [s^{-1}]" offset -2,0,0 font ""
plot "300sLinienMit0.txt" u ($1):($3/300) w boxes lc rgb "#ff6600" title "351,03 keV"
unset ylabel
set xtics format ""
unset xlabel
set tmargin 0.5
set yrange [1:1000]
set format x "%g"
set xtics 5 offset 0,0,0
set bmargin 3.5
set xlabel "Blei-Abschirmung [mm]" offset 0,0,0 font ""
#set ylabel "Photonen / s [Tsd.]" offset 0,0,0 font ""
plot "300sLinienMit0.txt" u ($1):($4/300) w boxes lc -1 title "831,98 keV"
unset multiplot
【问题讨论】:
标签: plot gnuplot height equals