Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reel Support #40

Open
tawheeler opened this issue Apr 26, 2016 · 6 comments
Open

Reel Support #40

tawheeler opened this issue Apr 26, 2016 · 6 comments

Comments

@tawheeler
Copy link
Member

tawheeler commented Apr 26, 2016

Reel.jl lets you string frames together into videos (or gifs, etc.)
I figured out how to use it with PGFPlots, but it requires setting (a very small number of) things to get it to work:

using PGFPlots
using Reel
Reel.set_output_type("gif") // I use this - may not strictly be required
Reel.extension(m::MIME"image/svg+xml") = "svg"

frames = Frames(MIME("image/svg+xml"), fps=10)
for frame in 1:10

    t = rad2deg(linspace(0,5pi,60))
    x = sind(t)
    y = cosd(t)
    z = 2t/(5pi)
    p = Plots.Linear3(x, y, z, mark="none")
    view=@sprintf("{%f}{30}", rad2deg(frame*0.1))

    ax = Axis(p, view=view, xlabel="x", ylabel="y", zlabel="z")

    push!(frames, ax)
end 
frames

Would we like to support this directly? Should we just add an example to the docs without supporting it directly?

@mykelk
Copy link
Member

mykelk commented Apr 27, 2016

I would love for this to be supported directly! Lots of people want animated plots! It would be nice to make the interface for doing this really slick.

@tawheeler
Copy link
Member Author

tawheeler commented Apr 29, 2016

So it looks like we only need:

  1. to include Reel
  2. add Reel.extension(m::MIME"image/svg+xml") = "svg"
  3. add some method for getting a Frames object with the desired MIME.
  4. maybe reexport Reel
  5. document some examples

The rest is handled by Reel.

@tawheeler
Copy link
Member Author

Would like to pull this in, but Reel hasn't issued a new tag in ages.

@tawheeler
Copy link
Member Author

I asked to be made a collaborator on shashi/Reel.jl#11.

@tawheeler
Copy link
Member Author

See 1263193

@juliohm
Copy link

juliohm commented Aug 19, 2017

I would say that better than Reel.jl is the gif interface of Plots.jl: https://juliaplots.github.io/ Scroll down a little to see the first example with the Lorenz Attractor.

More documentation is available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants