Gnuplot:如何消除绘图左右两侧的空白

问题描述 投票:0回答:1

[当我想使用gnuplot生成图形时,我遇到了一个问题,即使两个边距都设置为0,左右边距也不合适。我最好将它们的宽度设置为几毫米。可能吗?这是我使用的代码:

set size ratio 0.7 
set key font ",30"
set xtics font ",30"
set ytics font ",30"
set ylabel font ",30"
set xlabel font ",30"
set xtics offset 0, -1
set xrange [350:700]
set xlabel "{/Symbol l} [nm]" offset 0,-2
set yrange [0:1.2]
set ylabel "Absorbance" offset -4.2,0
set key box
set bmargin 6
set lmargin 0
set rmargin 0
plot "mereni.txt" using 1:($5/1.91981-$7) with lines lw 3 lc "#5F9EA0" title "Perylen", "mereni.txt" using 1:($8/0.76993-$7) with lines lw 3 lc "#8B008B" title "TIPS-pentacén"
gnuplot space margins white
1个回答
0
投票

您可以像这样将边框强制到屏幕(或页面)大小的特定部分:

© www.soinside.com 2019 - 2024. All rights reserved.