gnuplot凡例などに記号を使う。

gnuplotで凡例などに記号を使う。

一つの方法は、
まず、
set term postscript enhanced color
でpostscriptをターミナルに指定。

次に、
式を書く。
上付きは"^"の記号は10^{32}。
下付きは"_"の記号は10_{32}。
記号は、{/text=\264}等記号で指定する(これは点)。
無限大は、{\Symbol=\245}。
ギリシャ文字はμは{/Symbol m}。




記号の番号一覧は(8進コード)

ps_guide.ps
http://wwwhep.s.kanazawa-u.ac.jp/kogi/gnuplot/ps_guide.pdf

を参考に。

例えば、

plot "meansalesmeanoutdegree.txt " using 2:3 ti "Firms in Japan" with point
1,(10**8.2)*x**1.3 ti "y=10^{8.2}{/text=\264}x^{1.3}"


すべてのプロットの例

set term postscript eps enhanced color "Helvetica" 30
#set term postscript plus
set format y "10^{%L}"
set format x "10^{%L}"
#set tics font "Helvetica,25"
set out "salesoutdegree.eps"
set logscale
set ylabel "Mean of the sales (yen)"
set xlabel "Mean of the outdegree"
set key left
#set key 300,80000
set pointsize 2
#set yrange [8:100000]
#set style points 3
plot "meansalesmeanoutdegree.txt " using 2:3 ti "Firms in Japan" with point
1,(10**8.2)*x**1.3 ti "y=10^{8.2}{/text=\264}x^{1.3}"

replot