gnuplot

counter

いままでのをチャラにするには

reset

gnuplotの各言語へのインタフェース

プロットの色の変更 http://www1.kuic.kyoto-u.ac.jp/~kaji2/unix/gnuplot.html set arrow

x,yの範囲の設定

xrange [-1:1]
yrange [-1:1]

細かくプロットするには

set isosample 40

等高線表示

set view 0,0
set nosurface
set contour
set cntrparam levels 10	等高線の本数
set cntrparam levels incremental 0,0.1,1 等高線の値ときざみ幅

カラーのepsで出力するには

set term postscript enhanced color 

横にするには

set term postscript landscape enhanced color 

プロットの範囲の指定方法

plot [x:0:255] x
plot [0:255] 255*(x/255)**(1/0.7)	γ補正

splotしたデータをファイルに書き出す

gnuplot> set samples 40
gnuplot> set isosamples 40
gnuplot> splot sin(x)*sin(y)/x/y
gnuplot> set output "out.table"
gnuplot> set term table
Terminal type set to 'table'
gnuplot> replot
gnuplot> q

3次元濃度グラフを描くには

splot "test.dat" with line
splot
各z値における点の数が同じでないとz方向に関して線を結んでくれない

点をつなげる

set data style lines

gnuplot.el

.emacs に以下の行を追加
;; gnuplot.el
(autoload 'gnu-plot-mode "gnuplot" nil t)

send-line-to-gnu-plot:1行分のコマンドをgnuplotで実行させます.(Meta-E にバインド) 
send-region-to-gnu-plot:マークされたリージョン分のコマンドをgnuplotで実行させます.(Meta-R にバインド) 

なぜか M-x gnu-plot-mode としないとダメ、たんに .gpなファイル開くだけではだめだった。

nampa2のホームへ
[ プライベートビーチ | ホーム | ゲストブック ]