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

前端 未结 2 564
滥情空心
滥情空心 2021-02-08 23:43

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

The gnuplot FAQ gives some clues, but sho

2条回答
  •  梦毁少年i
    2021-02-09 00:17

    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!).

    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.

提交回复
热议问题