6
5

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.

Juliaでアニメーションgif生成

Last updated at Posted at 2017-07-28

とにかくデータをアニメーションさせたい

線が流れる様子はとてもいいものだ.

とにかくJuliaつかってみたい

なんだかよさそうなのでつかってみたい.
https://juliaplots.github.io/animations/ を動かしてみた.

動かした

anim_fps30.gif

using Reactive, Interact, Plots

x = linspace(0, 2*pi, 100)
dt, nsteps = 0.1, 10

anim = @animate for i in x[2:end]
    plot(x, sin.(x - i))
end

gif(anim, "/tmp/anim_fps15.gif", fps = 15)
gif(anim, "/tmp/anim_fps30.gif", fps = 30)

感想

pythonよりアニメーションさせやすい気がする.
ノイズが走るの気になる.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?