FuncAnimation and persistence

Hi all,

I realize that once I create a FuncAnimation object, I must assign it
to a label to make it persist [1]. Is this going to remain the case in
the foreseeable future? Is there a better way of doing this now?

Thanks,
Amit.

[1] https://github.com/matplotlib/matplotlib/issues/1656

···

--
http://echorand.me

There is no better way to do this at the moment. There have been talk of integrating the animation interface into Figure objects so that creating an animation would be similar to creating any other type of plot, with references to the animation object stored in the figure like any other Artist.

The basic rule of thumb is, if you are using a constructor, then assign the constructed object somewhere!

I hope that clears it up!
Ben Root

···

On Sun, Dec 28, 2014 at 7:25 AM, Amit Saha <amitsaha.in@…149…> wrote:

Hi all,

I realize that once I create a FuncAnimation object, I must assign it

to a label to make it persist [1]. Is this going to remain the case in

the foreseeable future? Is there a better way of doing this now?

Thanks,

Amit.

[1] https://github.com/matplotlib/matplotlib/issues/1656

http://echorand.me


Dive into the World of Parallel Programming! The Go Parallel Website,

sponsored by Intel and developed in partnership with Slashdot Media, is your

hub for all things parallel software development, from weekly thought

leadership blogs to news, videos, case studies, tutorials and more. Take a

look and join the conversation now. http://goparallel.sourceforge.net


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

There is no better way to do this at the moment. There have been talk of
integrating the animation interface into Figure objects so that creating an
animation would be similar to creating any other type of plot, with
references to the animation object stored in the figure like any other
Artist.

The basic rule of thumb is, if you are using a constructor, then assign the
constructed object somewhere!

Thanks a lot Benjamin! Very helpful indeed.

···

On Wed, Dec 31, 2014 at 4:53 AM, Benjamin Root <ben.root@...553...> wrote:

I hope that clears it up!
Ben Root

On Sun, Dec 28, 2014 at 7:25 AM, Amit Saha <amitsaha.in@...149...> wrote:

Hi all,

I realize that once I create a FuncAnimation object, I must assign it
to a label to make it persist [1]. Is this going to remain the case in
the foreseeable future? Is there a better way of doing this now?

Thanks,
Amit.

[1] Animations & Object Persistence · Issue #1656 · matplotlib/matplotlib · GitHub

--
http://echorand.me

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--