How is @ produced in gnuplot?

痴心易碎 提交于 2019-12-23 23:24:09

问题


I'm trying to put as the title of a plot "P@10" using GnuPlot, using the Helvetica font.

What I did was this:

set encoding iso_8859_1

set title "P \100 10"

The \100 comes from the octal representation of the at symbol in unicode. The final plot, however, replaces the @ with a simple space. Other symbols work as expected.

I also tried the matlab script provided here, to look for the @ symbol in at least 4000 different codes, but I couldn't find it.

Is this possible, even with another font?

EDIT: I tried this on three different systems, Ubuntu AND Windows, to no avail..

EDIT2: Minimal working example:

set term postscript eps enhanced color

set encoding iso_8859_1

set title "Test \@ Test" -or- set title "Test \100 Test"

set out "example.eps"

plot sin(x)

My output doesn't have any @ sign in the title.


回答1:


This post may be helpful. If you are using an 'enhanced' terminal you have to escape ('\@') the @ symbol.



来源:https://stackoverflow.com/questions/13631006/how-is-produced-in-gnuplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!