Gnuplot: change font size for plot with labels

后端 未结 1 1603
走了就别回头了
走了就别回头了 2021-01-25 05:09

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


        
相关标签:
1条回答
  • 2021-01-25 05:22

    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.

    0 讨论(0)
提交回复
热议问题