问题
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?
回答1:
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...
来源:https://stackoverflow.com/questions/11398657/star-symbols-in-gnuplot