Gnuplot: change font size for plot with labels

独自空忆成欢 提交于 2019-12-20 04:38:28

问题


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 ""

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


回答1:


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.



来源:https://stackoverflow.com/questions/52448737/gnuplot-change-font-size-for-plot-with-labels

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!