Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symbols in gnuplot

Tags:

gnuplot

I thought I knew how the {/Symbol x} worked in gnuplot but I don't. I need to get a partial derivative symbol (utf8 code U+2202), and I can't. How could I do it. I haven't found anything online. This is the document settings:

set terminal postscript eps enhanced color font "Helvetica, 20"
set encoding utf8

Thank you

like image 925
MyUserIsThis Avatar asked Sep 13 '26 06:09

MyUserIsThis


1 Answers

If you really need to use a postscript terminal, use

{/Symbol \266}

Your gnuplot distribution should contain the file ps_guide.ps. That explains all the character codes available in postscript.

In general I would second Christoph's suggestion to use a cairo terminal. In combination with UTF-8 input encoding and a proper font you can easily include more characters in your output.

When I generate plots for inclusion in TeX documents, I tend to use the same font as the body text (in the example below "TeX Gyre Pagella")

set terminal pdfcairo enhanced color dashed font "TeX Gyre Pagella, 14" \
rounded size 16 cm, 9.6 cm
set encoding utf8
like image 122
Roland Smith Avatar answered Sep 19 '26 07:09

Roland Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!