もちっとメモ

もちっとメモ

もぐりのエンジニアが日々の中で試してみたことを気が向いたときに書き連ねていきます

Gnuplotで3次元プロット(自分用メモ)

 基本的なコマンド

    
        set isosample 200 #解像度的な
        set dgrid3d 30,30 #グリット線を引く
        set hidden3d #裏側にも線を引く
        set ticslevel 0 #z軸の基準
        set xlabel "index"
        set ylabel "time"
        set zlabel "phase"
        set view 50,30 #視点の回転
        set contour base #等高線を表示
        set nosurface #3dプロットを非表示
        set terminal pngcairo enhanced size 640,480
        set output "3d.png"
        splot "data.dat" u 1:2:3 with linespoints pt 6
    

参考サイト
gnuplot / plot3d (1)
gnuplot / plot3d (2)