图例框大小

Legend Box Size

以下代码生成的框图例太大,我该如何解决?

set terminal epslatex standalone color size 4.0in,3.0in background rgb "white" font "Helvetica,10" header '\usepackage{amsmath,bm} \usepackage{amssymb}'

set output 'output.tex'

set key top right box
set key width 1
set key height 1

set lmargin at screen 0.15
set rmargin at screen 0.95
set tmargin at screen 0.95
set bmargin at screen 0.15


set xrange [0:6.28]
plot sin(x) title "$\dot{m}_{max, \, EFT}$"

有时 gnuplot 无法足够准确地估计字符串所需的位置。您已经使用了 set key width 命令,请尝试使用负宽度。

set key width -3

结果:

来自 help set key 文档:

When using the TeX/LaTeX group of terminals or terminals in which formatting information is embedded in the string, gnuplot can only estimate the width of the string for key positioning.