[gnuplot]gif アニメーションの作り方
環境: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ファイルが作れた。ただ画像が荒い。解像度を上げるにはどうすればいいんだろう?
Author And Source
この問題について([gnuplot]gif アニメーションの作り方), 我々は、より多くの情報をここで見つけました https://qiita.com/iHdkz/items/d45d0a27adc3664affc5著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .