2012年3月13日 星期二

Gnuplot note

Gnuplot note

set xrange[0:12] 設定 x 軸 range
set xrange[0:1024]
set xlabel "x" 設定 label
set ylabel "y" 設定 label
set term x11 0 第一個視窗
plot 在第一個視窗繪圖
set term x11 1 第二個視窗
plot 在第二個視窗繪圖
set term x11 2
plot 在第三個視窗繪圖

1:2 = column 用 white space 隔開
plot "file" using 1:2 title "f1" with boxes / impulses


set multiplot 同一個視窗同時繪圖 很多個檔案

set term x11 0
plot sin(x)
set term x11 1
plot cos(x)

沒有留言: