gnuplot

Last-modified: 2011-06-29 (水) 20:09:57

gnuplotの基本的な使い方

起動/終了

$ gnuplot

>q

>quit

プロット

> plot "Filename" [using 1:2] title 'Test' with linepoint [, "Filename" ...同じ書式で指定]
abbrevはw lpなど

区切り文字

set datafile separator ","

出力先設定

  • 出力先一覧

    > set terminal

  • 出力先設定

    > set terminal hoge [options]

    • デフォルト: wxt
    • png: png
    • svg: svg
    • eps: postscript eps (epsはoption)
  • 現在の設定

    > show terminal

出力ファイル設定

> set output "outputfile.png"

出力オプション

  • 線で表示

    > set data style lines

  • 出力範囲
    set xrange [0:1000]
    set yrange [0:100]
    set xr/yr [*:*] (元にもどす)