star symbols in gnuplot

不想你离开。 提交于 2019-12-21 20:53:48

问题


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

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