【发布时间】:2021-04-22 04:00:41
【问题描述】:
我正在使用 gnuplot 的 multiplot 环境。 我很难找到一种方法来增加所有情节上方的空白空间,以便为图例腾出一些空间。 我通过声明 4,1 的布局但实际上只使用前三个子图,设法在图的 下方 添加了一个空格。 (所以底部是空白的,我可以放 xlabel)。 如果我增加顶部的边距,那么第一个图会被挤压,如图所示。 如何以 simple 的方式在所有子图的高度保持相同的上方添加这个额外的空白。 这里我放了我的简单代码
set term pdfcairo size 6,4
set output "currents.pdf"
set xrange [0:1]
set tmargin 0
set bmargin 0
set lmargin 10
set rmargin 2
set multiplot layout 4,1
############################################# PLOT 1
set tmargin 2
set grid xtics ytics lt 1 lc "grey"
set ytics (-50,-40,-30,-20,-10,0,10,20,30)
set format x ''
set ylabel "[mV]" offset -3,0
set key at screen 0.8,0.97
plot "ionic_model_0d.csv" using 1:2 title "u" with lines lt 2 lc "red"
set tmargin 0
################################################# PLOT 2
set key at screen 0.4,0.97
plot "ionic_currents.csv" using "Time":"INaK" with lines
################################################# PLOT 3
set format x "%1.1f"
set yrange [-0.002:0.022]
set xtics (0,0.2,0.4,0.6,0.8,1)
set ytics (0.002,0.006,0.01,0.014,0.018,)
set ylabel "[nA]" offset 0,0
set xlabel "Time [s]"
set grid xtics ytics lt 1 lc "grey"
set key at screen 0.68,0.97
plot "ionic_currents.csv" using "Time":"Ito" with lines lt 2 lc "blue"
unset multiplot
【问题讨论】:
标签: matplotlib data-visualization gnuplot data-analysis subplot