2013年3月2日土曜日

[gnuplot]各種グラフ

Example: test.plt
set term png size 400,300
set output 'C:\home\gnuplot\000-impulses.png'
plot 'c:\home\gnuplot\test.dat' with impulses
set output 'C:\home\gnuplot\001-boxes.png'
plot 'c:\home\gnuplot\test.dat' with boxes
set output 'C:\home\gnuplot\002-errorlines.png'
plot 'c:\home\gnuplot\test.dat' with errorlines
set output 'C:\home\gnuplot\003-lines.png'
plot 'c:\home\gnuplot\test.dat' with lines
set output 'C:\home\gnuplot\004-points.png'
plot 'c:\home\gnuplot\test.dat' with points
set output 'C:\home\gnuplot\005-dots.png'
plot 'c:\home\gnuplot\test.dat' with dots
set output 'C:\home\gnuplot\006-steps.png'
plot 'c:\home\gnuplot\test.dat' with steps
set yrange [0:600]
set output 'C:\home\gnuplot\007-lines-yrange0_600.png'
plot 'c:\home\gnuplot\test.dat' with lines
set xlabel "x-label"
set ylabel "y-label"
set output 'C:\home\gnuplot\008-lines-xylabel.png'
plot 'c:\home\gnuplot\test.dat' with lines
set title "test graph"
set output 'C:\home\gnuplot\009-lines-title.png'
plot 'c:\home\gnuplot\test.dat' with lines
exit
test.plt を使用していろいろなグラフスタイルで出力してみた。
impulses
set output 'C:\home\gnuplot\000-impulses.png'
plot 'c:\home\gnuplot\test.dat' with impulses

boxes
set output 'C:\home\gnuplot\001-boxes.png'
plot 'c:\home\gnuplot\test.dat' with boxes

errorlines
set output 'C:\home\gnuplot\002-errorlines.png'
plot 'c:\home\gnuplot\test.dat' with errorlines

lines
set output 'C:\home\gnuplot\003-lines.png'
plot 'c:\home\gnuplot\test.dat' with lines

points
set output 'C:\home\gnuplot\004-points.png'
plot 'c:\home\gnuplot\test.dat' with points

dots
set output 'C:\home\gnuplot\005-dots.png'
plot 'c:\home\gnuplot\test.dat' with dots

steps
set output 'C:\home\gnuplot\006-steps.png'
plot 'c:\home\gnuplot\test.dat' with steps

0 件のコメント:

コメントを投稿