next up previous
Next: 4.2.2 2変数関数の零点集合 Up: 4.2 gnuplot Previous: 4.2 gnuplot

4.2.1 1変数関数のグラフ

gnuplot> plot sin(x),cos(x)
gnuplot> f(x)=x**3+2*x**2+3*x+4
gnuplot> plot [-4:4] f(x)
gnuplot> plot [-pi/2:pi/2] [-10:10] tan(x)
gnuplot> set plot sin(1000*x)
gnuplot> show samples
gnuplot> set samples 4000
gnuplot> set plot sin(1000*x)

gnuplot> f(x)=exp(-x*x/2)/sqrt(2*pi) ← 標準正規分布の確率密度関数を定義
gnuplot> plot [-3:3] f(x)  

図: 正規分布の確率密度関数 ( $ \pm 3\sigma $ の範囲)
\includegraphics[width=7cm]{eps/normal.eps}


next up previous
Next: 4.2.2 2変数関数の零点集合 Up: 4.2 gnuplot Previous: 4.2 gnuplot
Masashi Katsurada
2011-10-01