使用 GNUplot 在图例中插入希腊字母

man*_*ani 3 gnuplot

我正在尝试使用以下代码将希腊符号合并到我的图表中,但两次出现类似的错误。

警告:增强的文本模式解析器 - 忽略虚假 }

警告:增强的文本模式解析器 - 忽略虚假 }

reset

# svg
#set terminal svg size 410,250 fname "Times New Roman" \

set terminal svg size 410,250, enhanced fname 'Times New Roman' \

fsize "12" rounded dashed
set output "data1.svg"

set tics nomirror

# color definitions
set style line 1 lc rgb "#8b1a0e" pt 1 ps 1 lt 1 lw 2 # --- red
set style line 2 lc rgb "#5e9c36" pt 2 ps 1 lt 2 lw 2 # --- green

set key bottom right

plot "abc.htm" using 1:2 title "N('\alpha', T)" w lp ls 1, \
 "abc.htm" using 1:3 title "N(\beta, T)" w lp ls 5
Run Code Online (Sandbox Code Playgroud)

PS:代码运行良好,直到我启用了 svg 终端的增强模式,因为我需要它来在我的图形图例中插入希腊字母。我使用的是 4.6 版,补丁级别 5。有人可以帮我吗?

swe*_*ber 5

正确的方法是

  1. 使用enhanced终端选项(你做了)
  2. wite{/Symbol a}为 alpha。

在网上搜索符号 + gnuplot,你会发现像http://mathewpeet.org/lists/symbols/这样的列表,其中包含gnuplot 可以理解的代码!