GNU plot 畫 surface 的方法有兩種,第一種是用 pm3d,這種情況下,每一行 data 之間需要有空行。需要打的指令如下:
set pm3d at s
set view map
unset surface
unset ztics
set palette rgbformulae 22,13,-31
set xlabel "Days from Jun 1, 2009"
set ylabel "frequency(MHz)"
set term postscript color
set output "dynamical.ps"
splot "dynamical.txt" using 1:2:3
另一種是不用 splot,只需要用 plot 即可。這種情況下,每一筆資料間不需要有空行,不過要先打
set style data image
接著用 plot 就可以了。不過這其中還有一些需要設定的東西,還在摸索中...
2009/08/17 更新:要設定 z 方向的範圍,可用
set zrange [0:40]
沒有留言:
張貼留言