LoginSignup
4
4

More than 5 years have passed since last update.

Gnuplotの使い方

Last updated at Posted at 2013-05-09

グリッド表示

set grid

ラベル表示

set xlabel 'xlabel'
set ylabel 'ylabel'

CSVファイルからのプロット

plot 'hoge.csv' using 1:2
# hoge.csvの1行目をx座標に、2行めをy座標にする

CSVファイルの区切り文字を指定

set datafile separator '\t'

x座標、y座標の範囲を指定

set xrange [-100:100]
set yrange [-200:400]

epsファイルとして出力

# plot hogehoge
set output 'output.eps'
set terminal postscript eps color
replot
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4