Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

star symbols in gnuplot

I'm trying to generate an .eps figure in gnuplot using

set terminal postscript eps enhanced color solid 

I want to include in my figure a title for a plot containing some star symbols, e.g ★ ☆

I tried through this:

plot "./mydata" u 1:2 title "★ ☆"

as well as this:

stars = sprintf("★ ☆")
plot "./mydata" u 1:2 title stars

but both of them don't work.

Any ideas?

like image 728
Thanasis Petsas Avatar asked Dec 04 '25 15:12

Thanasis Petsas


1 Answers

set term postscript enh color eps
set output 'test.eps'
set title 'star1:{/ZapfDingbats \110} star2:{/ZapfDingbats \111}'
plot sin(x)

Take a look at docs/psdoc/ps_guide.ps which is included with the gnuplot distribution. That's where I go when looking for special postscript characters...

like image 199
mgilson Avatar answered Dec 06 '25 09:12

mgilson