# Makie animations broken?

**URL:** <https://discourse.julialang.org/t/makie-animations-broken/56847>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [March 10, 2021, 2:33am UTC](https://discourse.julialang.org/t/makie-animations-broken/56847 "2021-03-10T02:33:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tross](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@tross](https://discourse.julialang.org/u/tross)\
**Post date:** [March 10, 2021, 2:33am UTC](https://discourse.julialang.org/t/makie-animations-broken/56847/1 "2021-03-10T02:33:29Z")

</div>

I was using a script to animate plots using Makie without any issue for a while, however now I am getting an error and I have no idea how to resolve it.

Here is an example script from an earlier post

```julia
using Makie
AbstractPlotting.inline!(true)

N = 1000
r = [(rand(5000, 2) .- 0.5) .* 25 for i = 1:N]
scene = scatter(r[1], markersize = 1, limits = FRect(-25/2, -25/2, 25, 25))
s = scene[end] # last plot in scene
record(scene, "output.mp4", r) do m
    s[1] = m
end

```

from

> [@Animate Plot with Many Frames Quickly with Makie](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094/3):
>
> Oh, this seems to be a pretty big regression… Try: N = 1000 r = [(rand(5000, 2) .- 0.5) .\* 25 for i = 1:N] scene = scatter(r[1][:, 1], r[1][:, 2], markersize = 1, limits = FRect(-25/2, -25/2, 25, 25)) s = scene[end] # last plot in scene GLMakie.WINDOW\_CONFIG.vsync[] = false record(scene, "test.gif", r) do m s[1] = m[:, 1] s[2] = m[:, 2] end Is there a similar option to turn the display off with Makie ? That wouldn’t make a difference with GLMakie. Btw, you should best use an arr…

Now when I run this I get the following error, it seems like the formatting of scene has changed.

```julia
s = scene[end] # last plot in scene
ERROR: MethodError: no method matching lastindex(::AbstractPlotting.FigureAxisPlot)
Closest candidates are:
  lastindex(::Markdown.MD) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/Markdown/src/parse/parse.jl:26
  lastindex(::Figure, ::Any) at /home/tdross/.julia/packages/AbstractPlotting/ek9LT/src/figures.jl:92
  lastindex(::Cmd) at process.jl:638
  ...
Stacktrace:
 [1] top-level scope at REPL[10]:1
 [2] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288

```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [March 10, 2021, 7:39am UTC](https://discourse.julialang.org/t/makie-animations-broken/56847/2 "2021-03-10T07:39:19Z")

</div>

We don’t return `Scene` anymore from basic plotting commands ever since we have switched to using MakieLayout by default, see for example here [http://makie.juliaplots.org/dev/basic-tutorial.html#A-First-Plot](http://makie.juliaplots.org/dev/basic-tutorial.html#A-First-Plot) or here [http://makie.juliaplots.org/dev/plot\_method\_signatures.html](http://makie.juliaplots.org/dev/plot_method_signatures.html)

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [November 12, 2021, 3:39pm UTC](https://discourse.julialang.org/t/makie-animations-broken/56847/3 "2021-11-12T15:39:54Z")

</div>

So the examples should be updated? E.g. here: [http://juliaplots.org/MakieGallery.jl/stable/animation.html](http://juliaplots.org/MakieGallery.jl/stable/animation.html)

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [November 12, 2021, 4:05pm UTC](https://discourse.julialang.org/t/makie-animations-broken/56847/4 "2021-11-12T16:05:36Z")

</div>

They are. You are looking at old documentation (MakieGallery is deprecated).

The current one is here: [Home](https://makie.juliaplots.org/dev/)

Link to the animations section: [Animations](https://makie.juliaplots.org/dev/documentation/animation/index.html)

I know some packages have managed to add a floating banner in old documentation warning users and pointing them to the right one. I wonder if we can do that as well.

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [November 12, 2021, 7:07pm UTC](https://discourse.julialang.org/t/makie-animations-broken/56847/5 "2021-11-12T19:07:01Z")

</div>

Ah thanks! Yes, a deprecation banner would be helpful
