gnuplot - pdf 终端 - 设置 unicode 字符(太阳质量符号/点) [英] gnuplot - pdf terminal - setting unicode character (solar mass symbol/odot)

查看:40
本文介绍了gnuplot - pdf 终端 - 设置 unicode 字符(太阳质量符号/点)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 gnuplot (4.6.0) pdf 终端中设置 LaTeX odot 符号.确切的语法是什么?

I'm trying to set the LaTeX odot symbol in the gnuplot (4.6.0) pdf terminal. What is the exact syntax for this?

gnuplot FAQ 提供了一些线索,但我应该输入 {/Symbol 2299}{/utf8 2299},或 /#等?或者我应该 set encoding utf8 吗?直接粘贴符号似乎不起作用.

The gnuplot FAQ gives some clues, but should I type {/Symbol 2299}, or {/utf8 2299}, or some other variation on , /, # etc.? Or should I do set encoding utf8? Pasting the symbol in directly does not seem to work.

我应该使用 pdf 还是 pdfcairo 作为终端?后者以无法忍受的方式影响了我的情节.

Should I use pdf or pdfcairo for the terminal? The latter affects my plots in intolerable ways.

推荐答案

很简单.首先需要选择支持Unicode的终端;那么你确实可以直接粘贴你的Unicode字符.正如您所发现的,旧的 pdf 终端不支持 Unicode,但更新的 pdfcairo 支持.你说它弄乱了你的图表,但是怎么办?我发现它产生了相同的结果,但质量更好(更流畅的线条、抗锯齿和 Unicode!).

It is pretty simple. First you need to select a terminal that supports Unicode; then you can indeed paste your Unicode characters in directly. The old pdf terminal does not support Unicode, as you've found out, but the more recent pdfcairo does. You say it messes up your graphs, but how? I've found that it produces the same result, but with better quality (smoother lines, antialiasing, and Unicode!).

每个人都安装了不同的终端.其他可能在您的系统上支持 Unicode 的终端是 pngcairo 和 svg.后者是矢量格式,如pdf.如果您需要 pdf 作为最终文件并且 pdfcairo 不适合您,请使用其他可以处理 Unicode 并转换文件的东西.如果您想要出色的标签和数学装饰,LaTeX 解决方案最终是最好的,但要控制输出,您需要精通 LaTeX.

Everyone has a different set of terminals installed. Other terminals that might support Unicode on your system are pngcairo and svg. The latter is a vector format, like pdf. If you need pdf as a final file and pdfcairo is not working for you, use something else that can handle Unicode and convert the file. The LaTeX solution is ultimately the best if you want excellent labels and mathematical adornments, but to control the output you will need to get good at LaTeX.

这篇关于gnuplot - pdf 终端 - 设置 unicode 字符(太阳质量符号/点)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆