gnuplot 中的符号

Symbols in gnuplot

我以为我知道 {/Symbol x} 在 gnuplot 中是如何工作的,但我不知道。我需要得到一个偏导数符号(utf8 代码 U+2202),但我做不到。我怎么能做到。我还没有在网上找到任何东西。这是文档设置:

set terminal postscript eps enhanced color font "Helvetica, 20"
set encoding utf8

谢谢

使用任何基于 cairo 的终端(pdfcairoepscairo)并将字符直接插入到您的脚本中:

set encoding utf8

set terminal pdfcairo font ',20'
set output 'partial-derivative.pdf'
set xlabel '∂u/∂x'
plot x

如果您确实需要使用 postscript 终端,请使用

{/Symbol 6}

您的 gnuplot 发行版应包含文件 ps_guide.ps。这解释了 postscript 中所有可用的字符代码。

总的来说,我会赞同 Christoph 的建议,即使用 cairo 终端。结合 UTF-8 输入编码和适当的字体,您可以轻松地在输出中包含更多字符。

当我生成包含在 TeX 文档中的图表时,我倾向于使用与正文相同的字体(在下面的示例中 "TeX Gyre Pagella")

set terminal pdfcairo enhanced color dashed font "TeX Gyre Pagella, 14" \
rounded size 16 cm, 9.6 cm
set encoding utf8