# Can't create animations

**URL:** <https://discourse.julialang.org/t/cant-create-animations/9363>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [February 27, 2018, 10:19am UTC](https://discourse.julialang.org/t/cant-create-animations/9363 "2018-02-27T10:19:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Toth](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@Robert\_Toth](https://discourse.julialang.org/u/Robert_Toth)\
**Post date:** [February 27, 2018, 10:19am UTC](https://discourse.julialang.org/t/cant-create-animations/9363/1 "2018-02-27T10:19:26Z")

</div>

Hi guys, when I try the code from home page of plots:

# initialize the attractor

n = 1500  
dt = 0.02  
σ, ρ, β = 10., 28., 8/3  
x, y, z = 1., 1., 1.

# initialize a 3D plot with 1 empty series

plt = path3d(1, xlim=(-25,25), ylim=(-25,25), zlim=(0,50),  
xlab = “x”, ylab = “y”, zlab = “z”,  
title = “Lorenz Attractor”, marker = 1)

# build an animated gif, saving every 10th frame

@gif for i=1:n  
dx = σ\*(y - x) ; x += dt \* dx  
dy = x\*(ρ - z) - y ; y += dt \* dy  
dz = x_y - β_z ; z += dt \* dz  
push!(plt, x, y, z)  
end every 10

nothing happens except the plot initialization. More precisely, it pushes only the first datapoint in the plot and then stops working (but it does not draw it).  
When I try simpler code like this,  
anim = @animate for i = 1:10  
plot(u → sin(i_π_u), 0, 10)  
end  
the same happens.

I am using newest Atom, Julia and all packages are updated. The backend is plotlyJS.

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [February 27, 2018, 10:27am UTC](https://discourse.julialang.org/t/cant-create-animations/9363/2 "2018-02-27T10:27:29Z")

</div>

Hi @Robert_Toth! Not sure why your plots won’t display, but please due take a look at [this](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) short explanation on how to quote code in Discourse. It’ll make your post a lot easier to read.

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [February 27, 2018, 11:35am UTC](https://discourse.julialang.org/t/cant-create-animations/9363/3 "2018-02-27T11:35:04Z")

</div>

Maybe you need to install ffmpeg on your computer for this to work?

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [February 27, 2018, 11:43am UTC](https://discourse.julialang.org/t/cant-create-animations/9363/4 "2018-02-27T11:43:25Z")

</div>

> [@piever](#):
>
> install ffmpeg on your computer

This is true for any `gif` creation in the `Plots.jl` package.
