【问题标题】:Gnuplot Unicode charactersGnuplot Unicode 字符
【发布时间】:2014-01-03 09:06:43
【问题描述】:

如果满月的 Unicode 代码点是 U+1F315,我该如何在绘图中使用它?

以@andyras 为例:

set terminal epslatex standalone color
set output 'plot.tex'
set xlabel '$\odot$ is a \LaTeX symbol.'
plot sin(x)

(这里是gnuplot - pdf terminal - setting unicode character (solar mass symbol/odot)

如何插入该 Unicode 字符?首选输出是 PDF,我安装了 pdfcairo。

更新:@darthbith @Christoph

原来 Symbola 字体包含基本月相的所有 unicode 字形。 在这些标签中,最后两个有效。作为符号插入到 BBedit 命令文件中,符号正确显示; BBedit文件保存为UTF8; UTF8 在终端中设置。 SVG 终端输出正确显示所有字符; Aqua abd PDF 终端仅正确显示第一季度和最后一个季度:

"" u (myDateSP(1,2)):3:((strcol(4) eq "New") ?  ("????"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Full") ?  ("????"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("☽"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Last") ?  ("☾"):1/0) w labels left font "Symbola,28" offset -4,0,\

这些终端设置似乎都没有帮助:

设置终端 pdfcairo 增强大小 13.5,9.8 设置术语 pdfcairo 增强字体 "Symbola" 大小 13.5,9.8

【问题讨论】:

  • 你知道如何使用LaTeX吗?如果是这样,this 表示符号是 \fullmoon 而不是 \odot
  • 如果您使用 pdfcairo 终端,请使用 unicode 字符串,例如 Lee Phillips' answer 到您链接的问题中。然后你还需要一个支持满月符号的字体(对我来说,默认字体没有那个字形)。
  • @darthbith @Christoph 已在 comp.graphics.apps.gnuplot 组中解决,在此线程中:groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/…> 解释太长,无法放在这里。
  • @Dan 你可以answer your own question (我相信已经有足够的时间允许这样做了。)这将帮助任何在谷歌中找到这个答案的人。

标签: unicode gnuplot


【解决方案1】:

原来 Symbola 字体包含基本月相的所有 unicode 字形。在这些标签中,最后两个有效。作为符号插入到 BBedit 命令文件中,符号正确显示; BBedit文件保存为UTF8; UTF8 在终端中设置。 SVG 终端输出正确显示所有字符; Aqua 和 PDF 终端仅正确显示第一季度和最后一个季度。

解决方案是使用 Symbola 字体和字形,并用它的圆圈和黑色大圆圈代替满月和新月。满月/新月代码点是最近添加的,它们很少在桌面应用程序中工作(它们在 BBEdit 中工作,但在 PDFcairo 终端中不工作)。

关于这一切的完整细节的线程在这里:

https://groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/96gDfBo3gp8

我的标签现在看起来像这样,并且可以按我的意愿工作。

"" u (myDateSP(1,2)):3:((strcol(4) eq "New") ?  ("●"):1/0) w labels left font "Symbola,68" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Full") ?  ("◯"):1/0) w labels left font "Symbola,28" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "First") ?  ("☽"):1/0) w labels left font "Symbola,40" offset -4,0,\
"" u (myDateSP(1,2)):3:((strcol(4) eq "Last") ?  ("☾"):1/0) w labels left font "Symbola,40" offset -4,0,\

【讨论】:

    猜你喜欢
    • 2017-11-19
    • 2013-10-17
    • 2014-08-23
    • 2015-03-25
    • 1970-01-01
    • 2011-11-12
    • 2012-07-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多