Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-16 Thread Ryan Nelson
Tom, Thanks for the code. As it was given, I had to change `blit=True` in the `FuncAnimation` call in order to get this to work in a regular Qt backend. It did not work with the nbagg backend; however, if I used this code it works fine: %matplotlib nbagg import numpy as np import

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-16 Thread Benjamin Root
I just noticed your use of animated=True. I have had trouble using that in the past with the animation module. It is a leftover from the days before the animation module and isn't actually used by it, IIRC. Try not supplying that argument. On Thu, Apr 16, 2015 at 8:18 AM, Ryan Nelson

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-16 Thread Ryan Nelson
Ben, Sorry. I probably should have just dropped that entirely. In my code sample, it is actually commented out because it breaks the animation with the nbagg backend. It was in Tom's example, so I left it in because I wanted to find out what it was doing. Ryan On Thu, Apr 16, 2015 at 9:30 AM,

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-16 Thread Thomas Caswell
The 'animated' property is used _deep_ with in `axes.draw` ( https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_base.py#L2035) to skip artists with the 'animated' flag set. This makes them play nice with blitting (which explicitly uses `axes.draw_artist`) so they are not

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-13 Thread Benjamin Root
animation objects have a private _stop() method. That might have to be a workaround. On Sun, Apr 12, 2015 at 9:24 AM, Thomas Caswell tcasw...@gmail.com wrote: You can ``` #import matplotlib #matplotlib.use('nbagg') #%matplotlib nbagg import numpy as np import matplotlib.pyplot as

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-12 Thread Ryan Nelson
Tom, Thanks for the links. It does seem like fragments of my problem are addressed in each of those comments, so I guess I'll have to wait for a bit until those things get resolved. For now, I can just tell my students to restart the IPython kernel each time they run the animation, which isn't

Re: [Matplotlib-users] Some questions regarding pcolor(mesh)/nbagg/FuncAnimate

2015-04-12 Thread Thomas Caswell
You can ``` #import matplotlib #matplotlib.use('nbagg') #%matplotlib nbagg import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animate class Testing(object): def __init__(self, ): self.fig = plt.figure() array = np.random.rand(4,5)