gnuplot:更改带有标签的绘图的字体大小 [英] Gnuplot: change font size for plot with labels

查看:476
本文介绍了gnuplot:更改带有标签的绘图的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够控制由...产生的标签的字体大小

I would like to be able to control the font size for the labels produced by

plot file u 1:2:(sprintf("%4.3f", $1)) with labels offset char 0,2 t ""

,但尚未找到方法.让我补充一点,我使用epslatex终端.

but have not found a way yet. Let me add that I use the epslatex terminal.

推荐答案

对于乳胶终端,字体的选择和大小受LaTeX的控制,而不是gnuplot内部增强的文本处理.您必须将标签格式化为TeX命令.

In the case of the latex terminals the font choice and size are under the control of LaTeX rather than gnuplot's internal enhanced text processing. You would have to format the label as a TeX command.

plot file u 1:2:(sprintf('{\\tiny %4.3f}', $1)) with labels notitle    

请注意,转义的反斜杠数量取决于您将格式放在单引号还是双引号中.

Note that the number of escaped backslashes depends on whether you place the format in single or double quotes.

这篇关于gnuplot:更改带有标签的绘图的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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