… CentOS5.2 gnuplot

neko1sa.gif gnuplot について



2008年10月現在の私の Linux マシンのバージョンです。
OS : CentOS 5.2 (Kernel 2-6-18-92.1.13.e15 on an i686)

gnuplot というツールがあります。
何かと言えば、数値や関数などを視覚化して見せてくれるソフトです。

http://auemath.aichi-edu.ac.jp/~khotta/ghost/gnuplot.html#10-2 のサンプルをそのまま試してみようと思います。

例えば、以下のように入力してみると

$ gnuplot> set hidden3d
$ gnuplot> set isosamples 50
$ gnuplot> splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2)


gnuplot-sample1


以下のようになりました。
sample1.png


さらに以下のように入力すると

$ gnuplot> splot [-pi:pi] [-pi/2:pi/2] sin(x)*cos(y)


sample2.png

sample2-1.png

このように数値や関数などを視覚化してグラフとして見せてくれます。


本家のgnuplotにはたくさんのデモがとスクリプトが載っている、 Demo scripts for gnuplotがありますので、一度訪問してみたらいかがでしょう?
demo.png

また、gnuplot の日本語サイトは http://t16web.lanl.gov/Kawano/gnuplot/index.html にあります。
gnuplotsite
set command 一覧なども詳しく説明されています。