gnuplot-调整键/图例的大小 [英] gnuplot - adjust size of key/legend

查看:501
本文介绍了gnuplot-调整键/图例的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I adjust the size of the legend in gnuplot (4.6.0)? By this I mean the size of the lines and not just the font size. When I switched from the pdf to pdfcairo terminal the size suddenly jumped and caused the key to overlap the points of interest. (I needed cairo to enable unicode.)

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

An answer I have just invented is (e.g.):

set key font ",8"
set key spacing 0.5

有更好的方法吗?

推荐答案

要调整样本的长度,请执行以下操作:

To adjust the length of the samples:

set key samplen X

(默认为4)

要调整样本的垂直间距,请执行以下操作:

To adjust the vertical spacing of the samples:

set key spacing X

(默认为1.25)

和(为了完整性),调整字体大小:

and (for completeness), to adjust the fontsize:

set key font "<face>,<size>"

(默认值取决于终端)

当然,所有这些都可以合并为一行:

And of course, all these can be combined into one line:

set key samplen 2 spacing .5 font ",8"

请注意,您还可以使用set key at <position>或任何预定义的位置(此刻我将仅遵从help key的要求)来更改键的位置

Note that you can also change the position of the key using set key at <position> or any one of the pre-defined positions (which I'll just defer to help key at this point)

这篇关于gnuplot-调整键/图例的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆