gnuplot / label (1)
not so FAQ
|
ラベルあれこれ (その1)ラベルに上付き・下付き添字を使いたい. enhanced postscriptのterminalを使うと,軸の名前や図中のラベルの gnuplot> set terminal postscript enhanced の様に,enhaned のオプションが必要です.TeXの添字の書き方のように,X^2 例として,y=sin**2(x),y=sin**3(x),y=sqrt(sin(x)) の3つを描いて,その gnuplot> set terminal postscript eps enhanced gnuplot> set key spacing 1.3 gnuplot> set xrange [ 0 : pi ] gnuplot> set yrange [ 0 : 1.5 ] gnuplot> plot sin(x)**2 ti "sin^2(x)", sin(x)**3 ti "sin^3(x)", sqrt(sin(x)) ti "sin^{1/2}(x)" ![]() 凡例の文字列に添字が付いていると,そのままでは凡例同士がくっつき ラベルにα,βの様なギリシャ文字を使いたい. 文字列の中にギリシャ文字を使う場合も,添字の gnuplot> set terminal postscript enhanced の様に,enhanced のオプションを付けます. ギリシャ文字は {/Symbol a} の様に記述します.この場合は小文字の”a”に
その他,直接8進数のキャラクタコードを指定することで,{/243}なら£, 例として,y=αx+γ という直線をプロットし,図中にα,γの値を gnuplot> set terminal postscript eps enhanced gnuplot> set xrange [ 0 : 5 ] gnuplot> set label "{/Symbol a}=0.5, {/Symbol g}=0.2" at 2,0 gnuplot> plot 0.5*x-0.2 ti "y={/Symbol a}x-{/Symbol g}" ![]() X,Y軸のラベルとグラフの間隔を調整したい. set {x|y}label のオプションに gnuplot> set xlabel "x" 0.0,1.0 とすると,x軸の名前が1文字分だけ上に上がり,グラフに近付きます.yのオ
同様に set ylabel "Y-AXIS" +n,+m の
|