3
votes

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
@choroba Do you suggest to maybe reinstall the fonts? Can you point me to something? - Svalorzen
Which terminal are you using? Can you post a minimal example script? - andyras
I'm using this: "set term postscript eps enhanced color". Adding an example. - Svalorzen

1 Answers

4
votes

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