# Makie animation: type FigureAxisPlot has no field plots

**URL:** <https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696>\
**Category:** Visualization\
**Tags:** package, makie\
**Created:** [September 4, 2021, 3:16pm UTC](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696 "2021-09-04T15:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goh/32/28770_2.png) [@GoH](https://discourse.julialang.org/u/GoH)\
**Post date:** [September 4, 2021, 3:16pm UTC](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696/1 "2021-09-04T15:16:06Z")

</div>

Hi i am trying to run the example code in [http://juliaplots.org/MakieGallery.jl/stable/animation.html](http://juliaplots.org/MakieGallery.jl/stable/animation.html), but got an error of

```julia
type FigureAxisPlot has no field plots

getproperty(::Makie.FigureAxisPlot, ::Symbol)@Base.jl:33
(::Main.workspace24.var"#1#2")(::Int64)@Local: 8
var"#Record#922"(::Int64, ::typeof(Makie.Record), ::Main.workspace24.var"#1#2", ::Makie.FigureAxisPlot, ::UnitRange{Int64})@display.jl:595
#record#921@display.jl:587[inlined]
top-level scope@Local: 7

```

here is the code

```julia
begin
	using Makie
	
	
	scene = lines(rand(10); linewidth=10)
	
	record(scene, "line_changing_colour.mp4", 1:255; framerate = 60) do i
	       scene.plots[2][:color] = RGBf0(i/255, (255 - i)/255, 0) # animate scene
	       # `scene.plots` gives the plots of the Scene.
	       # `scene.plots[1]` is always the Axis if it exists,
	       # and `scene.plots[2]` onward are the user-defined plots.
	end
	
end

```

Usually if I want to plot something, it only works if I write `using Plots; Plots.plot()`

If I only say `plots()`, it will not work.

this time I cannot figure out which part is wrong, anyone help? many thanks!

---

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike/32/39_2.png) [@mike](https://discourse.julialang.org/u/mike)\
**Post date:** [September 4, 2021, 3:35pm UTC](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696/2 "2021-09-04T15:35:37Z")

</div>

I’m pretty certain MakieGallery docs is quite outdated at this point, the link you probably want to follow is [Animations](https://makie.juliaplots.org/v0.15.2/documentation/animation/index.html) which should work with current makie.

---

<div class="post-metadata">

**Author:** ![GoH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goh/32/28770_2.png) [@GoH](https://discourse.julialang.org/u/GoH)\
**Post date:** [September 5, 2021, 8:35am UTC](https://discourse.julialang.org/t/makie-animation-type-figureaxisplot-has-no-field-plots/67696/3 "2021-09-05T08:35:38Z")

</div>

Thanks, I should be aware of this!
