gnuplot - 调整键/图例的大小

jtl*_*lz2 26 gnuplot

如何在gnuplot(4.6.0)中调整图例的大小?我的意思是线条的大小不仅仅是字体大小.当我从pdf切换到pdfcairo终端时,大小突然跳跃并导致密钥与感兴趣的点重叠.(我需要cairo来启用unicode.)

我刚刚发明的答案是(例如):

set key font ",8"
set key spacing 0.5
Run Code Online (Sandbox Code Playgroud)

有没有更好的办法?

mgi*_*son 55

要调整样本的长度:

set key samplen X
Run Code Online (Sandbox Code Playgroud)

(默认为4)

要调整样本的垂直间距:

set key spacing X
Run Code Online (Sandbox Code Playgroud)

(默认为1.25)

和(为了完整性),调整fontsize:

set key font "<face>,<size>"
Run Code Online (Sandbox Code Playgroud)

(默认取决于终端)

当然,所有这些都可以组合成一行:

set key samplen 2 spacing .5 font ",8"
Run Code Online (Sandbox Code Playgroud)

请注意,您还可以使用set key at <position>或任何一个预定义位置更改键的位置(此时我将遵循help key此位置)