5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

大規模データを間引いて gnuplot で描画

Last updated at Posted at 2013-02-27

純粋に間引いて表示

every X という風に書けば X 行ごとに表示してくれる.

plot "hoge.dat" every 100 u 1:2 with lines

一定区間の平均をとって表示

以下のようにすると,x の値が 0.1 ごとにまとめられて平均をとってくれる.(filter の第二引数をいじればいくつごとにまとめるかが変えられる.)

filter(x,y)=int(x/y)*y
plot "hoge.dat" u (filter($1,0.1)):2 with lines smooth unique

以下の Web ページを参考にさせてもらいました.

5
7
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
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?