gnuplot:较小字体的字幕 [英] gnuplot: subtitle with smaller fontsize
问题描述
有人知道如何在gnuplot中插入较小字体的字幕吗?
Does somebody know how you can insert a subtitle with a smaller fontsize in gnuplot?
当前,我创建字幕的方法是在标题中使用\n
.另外,我希望字幕的字体较小.
Currently, the way I create a subtitle is by using \n
in the title. Additionally, I would like the subtitle to have a smaller fontsize.
谢谢.
推荐答案
这至少适用于postscript终端(由于某些原因x11
不想缩放我的字体.也许是一个错误……) :
This works for the postscript terminal at least (for some reason x11
didn't want to scale my font. Perhaps it is a bug...):
set term <whatever> enhanced
set output "<whatever.ext>"
set title "Big Title\n{/*0.5 subtitle}"
{/*0.5}
将字体大小缩放为当前活动字体大小的一半.您还可以显式指定字体大小:
The {/*0.5}
scales the fontsize to be half of the current active fontsize. You can also specify fontsizes explicitly:
set title "{/=20 Big} Medium {/=5 Small}"
或者您可以更改文本区域的字体:
Or you can change the font for a region of text:
set title "{/Helvetica foo} {/Symbol G}"
这些形式也可以组合以更改文本的特定区域中的字体和大小:
These forms can be combined to change the font and size in a particular region of text as well:
set title "This is a big gamma {/Symbol=20 G}"
有关增强文本的更多信息,请参见help enhanced
.
For more information about enhanced text, see help enhanced
.
这篇关于gnuplot:较小字体的字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!