2016-04-10 66 views
4

私は、log-logプロットを1/32から2の累乗で計算しています。gnuplot - 分数を軸ラベルに入れる

軸ラベル< 1を、小数ではなく小数として表示するにはどうすればよいですか(たとえば、0.03125ではなく1/32)。

答えて

4

あなたが手で個別に目盛りをラベル付けする必要があります:

set xtics ("1/2" .5, "1/4" 0.25, "1/8" .125, ...) 

または自動:

set logsc x; set xr [1./32:1] 
set xtics 1 # remove all tics and set one initial tic 
do for [i=1:5] {set xtics add (sprintf("1/%.f",2**i) 1./2**i)} 
plot x 
関連する問題