LoginSignup
1
1

More than 1 year has passed since last update.

[gnuplot]gif アニメーションの作り方

Posted at

環境:gnuplot 5.4 on Mac

ここを参考にgifアニメーションを作成してみた。
https://atatat.hatenablog.com/entry/gnuplot29_animation
do ループではなくrereadループの場合うまくいかない。

原因はset terminal gif animateの設定をrereadで再読み込みする際に繰り返し読み返されて初期設定に戻っているせい。
したがって、rereadしているファイル内でset terminal gif animateしてはいけない。外部ファイルで設定し当該ファイルをloadすればいい。
こんなふうに

createGifAnimation
#!/usr/bin/env gnuplot -dc -persist

set terminal gif animate

set output "flowAnimation.gif"

load "flow.gp"

set output

おかげでこんなgifファイルが作れた。ただ画像が荒い。解像度を上げるにはどうすればいいんだろう?

flowAnimation.gif

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