Gnuplot Postscript Special Characters Mathematical Equation

I would like to write math material to the plot using gnuplot 5:

enter image description here

I use terminal postscript enhancedit because, as far as I know, this terminal is the only one capable of doing such things. I used this code:

set label 1 at 400,200 '{/Symbol=50\362@_{/=15 350}^{/=15\154}}' front

This gives me everything except the one signed averageunder the lambda symbol. I tried everything with help {,}and so on, but I think that I am missing the part where I can avoid the style /Symbol.

+4
source share
1 answer

Many terminals support rich text, not just a terminal postscript.

, /Symbol , . , /Symbol :

set label 1 at 0,0 '{/=50{/Symbol \362}@_{/=15 350}^{/=15{/Symbol \154}_{/=10 average}}' front
plot x

gnuplot 5.0 wxt

enter image description here

postscript, epslatex ( cairolatex):

set terminal epslatex standalone color colortext
set output 'equation.tex'
set label 1 at -5,5 '$\displaystyle\int_{350}^{\lambda_{\mathrm{average}}}$'
plot x

set output
system('latex equation.tex')
system('dvips equation.dvi')
system('ps2pdf equation.ps')

enter image description here

+3

Source: https://habr.com/ru/post/1615662/


All Articles