Gnuplot 标签中的符号

Symbols in Gnuplot label

终端 qt 和 gnuplot 5.0 中的代码

plot x; set xlabel 'Magnetic field {/Symbol Mu}_0'

在 gnuplot 提示符下有效。 但是,{/Symbol mu}_0 在命令行脚本中不起作用

`/usr/local/bin/gnuplot -e "plot x; set xlabel 'Magnetic field {/Symbol m}_0 H / mT'`;

我明白了

gdImageStringFT: No character set found while printing string mu with font Symbol

如何在gnuplot标签中写下划线的符号?

要获得下标为零的 µ 字符,请使用 utf8 编码的标签

gnuplot -p -e "set encoding utf8; set xlabel 'Magnetic field µ₀ H / mT'; plot x"

gnuplot -p -e "set xlabel 'Magnetic field {/Symbol m}_0 H / mT'; plot x"