# Plotlyjs - animation errors in examples https://juliaplots.github.io/examples/plotlyjs/

**URL:** https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599
**Category:** Visualization
**Created:** [March 10, 2017, 8:51pm UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599 "2017-03-10T20:51:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![olegmikul](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@olegmikul](https://discourse.julialang.org/u/olegmikul)
#### Post date: [March 10, 2017, 8:51pm UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599/1 "2017-03-10T20:51:24Z")

</div>

Almost all example from [https://juliaplots.github.io/examples/plotlyjs/](https://juliaplots.github.io/examples/plotlyjs/) runs well under Jupyter notebook (some as is, some after minor Julia/Pkg fixes due to version updates).

But 3 errors I can’t easy fix:

1. Animation  
p = plot([sin,cos],zeros(0),leg=false)  
anim = Animation()  
for x = linspace(0,10π,100)  
push!(p,x,Float64[sin(x),cos(x)])  
frame(anim)  
end

**MethodError: no method matching handle\_new\_from\_data(::Dict{String,Any})**  
**Closest candidates are:**  
\*\* handle\_new\_from\_data(::AbstractString) at /home/o/.julia/v0.5/Rsvg/src/calls.jl:69\*\*  
\*\* handle\_new\_from\_data(::AbstractString, ::Gtk.GLib.GError) at /home/o/.julia/v0.5/Rsvg/src/calls.jl:61\*\*

1. Styles  
styles = setdiff(supported\_styles(),[:auto])’  
plot(cumsum(randn(20,length(styles)),1),style=:auto,label=map(string,styles),w=5)

**UndefVarError: supported\_styles not defined**

1. Markers  
markers = setdiff(supported\_markers(),[:none,:auto,Shape])’  
n = length(markers)  
x = (linspace(0,10,n + 2))[2:end - 1]  
y = repmat(reverse(x)',n,1)  
scatter(x,y,m=(8,:auto),lab=map(string,markers),bg=:linen,xlim=(0,10),ylim=(0,10))

**UndefVarError: supported\_markers not defined**

I am using Julia 0.5.2 latest version as of today

Can someone help? Thanks.

---

<div class="post-metadata">

### Author: ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)
#### Post date: [March 10, 2017, 11:07pm UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599/2 "2017-03-10T23:07:29Z")

</div>

For 2 and 3: There is a small error in the docs, as supported\_styles is not exported. This should be `Plots.supported_styles()` and `Plots.supported_markers()` instead. Do you feel like making a PR against [https://github.com/JuliaPlots/PlotDocs.jl/tree/master/docs/examples](https://github.com/JuliaPlots/PlotDocs.jl/tree/master/docs/examples) (I think the pages for all backends should be updated)?

---

<div class="post-metadata">

### Author: ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)
#### Post date: [March 10, 2017, 11:15pm UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599/3 "2017-03-10T23:15:38Z")

</div>

For animations in jupyter, try creating a gif instead - like the example of the lorenz attractor on the home page. If you keep getting an error perhaps open an issue on Plots.

---

<div class="post-metadata">

### Author: ![olegmikul](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@olegmikul](https://discourse.julialang.org/u/olegmikul)
#### Post date: [March 10, 2017, 11:54pm UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599/4 "2017-03-10T23:54:49Z")

</div>

Thank you - it works for 2 and 3 after fixes.

Yes, updating all backends examples should be quite useful for newcomers. On the other hands, Julia itself is evolving a lot, so some changes and bugs are expected.

---

<div class="post-metadata">

### Author: ![olegmikul](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@olegmikul](https://discourse.julialang.org/u/olegmikul)
#### Post date: [March 11, 2017, 12:39am UTC](https://discourse.julialang.org/t/plotlyjs-animation-errors-in-examples-https-juliaplots-github-io-examples-plotlyjs/2599/5 "2017-03-11T00:39:00Z")

</div>

Animation has failed for gif also - I have opened an issue on Plots.

Thanks.
