首页 > 解决方案 > 带有 Gnuplot 的希腊字母

问题描述

我在 Gnuplot 中与希腊字母作斗争。我听从了其他线程的建议,将终端设置为“增强”并使用了 {/Symbol} 格式,但代码仍然不打印希腊字母。我的标签是“Tiefe in mm”而不是“Tiefe in µm”。

set terminal svg enhanced font "arial bold,10" size 800,600 background '#ffffff'
set ylabel "Tiefe in {/Symbol m}m"

我究竟做错了什么?谢谢您的帮助

标签: gnuplot

解决方案


您可以使用将终端设置为 epslatex,然后使用希腊字母。下面是一个示例脚本

set terminal epslatex color size 5.5in,3.5in standalone
set output 'profile.tex'
set ylabel "$\\textrm{Tiefe in} \\mu$"
pl 'data.txt' u 1:2 w lp ps 2 pt 5 lw 2 lc 7 title 'Data'
unset out
set out

推荐阅读