animating contours

Hi,

I’m trying to create 2D
animations using contours. Is there a recommended way to do this? I was
hoping to follow the same route as in the dynamic_image_gtkagg.py
example, but for some reason set_array doesn’t work for me with
contour. It doesn’t produce any error, but the figure just doesn’t get
updated after calling canvas.draw().

Matplotlib version:
0.87.7

Thanks,

Yoav

The contour routine does not have update functionality similar to that of an image; you have no choice but to generate a new ContourSet object each time.

Eric

Yoav Avitzour wrote:

···

Hi,

I'm trying to create 2D animations using contours. Is there a recommended way to do this? I was hoping to follow the same route as in the dynamic_image_gtkagg.py example, but for some reason set_array doesn't work for me with contour. It doesn't produce any error, but the figure just doesn't get updated after calling canvas.draw().

Matplotlib version: 0.87.7

Thanks,

Yoav

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

OK, thanks for the
info. Is imshow currently the only array imaging routine that supports
this functionality?

Thanks again,

Yoav

Eric Firing wrote:

···

http://sourceforge.net/powerbar/db2/

Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users