In my last post I said that upgrading Numpy to 1.6.1 restored function
to Matplotlib 1.1.0.  Well, I spoke a bit too soon.  Static contour
plots appear to work fine, but they don't play nicely with the new
animation methods.

This animation example runs without errors.

http://matplotlib.sourceforge.net/examples/animation/dynamic_image2.html

But change line 23 from this:

  im = plt.imshow(f(x, y))

to this:

  im = plt.contour(f(x, y))

and you get this:

Traceback (most recent call last):
  File "dynamic_image2.py", line 27, in <module>
    repeat_delay=1000)
  File "/usr/local/lib/python2.6/dist-packages/matplotlib/animation.py",
line 358, in __init__
    TimedAnimation.__init__(self, fig, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/matplotlib/animation.py",
line 306, in __init__
    Animation.__init__(self, fig, event_source=event_source, *args,
**kwargs)
  File "/usr/local/lib/python2.6/dist-packages/matplotlib/animation.py",
line 55, in __init__
    self._init_draw()
  File "/usr/local/lib/python2.6/dist-packages/matplotlib/animation.py",
line 365, in _init_draw
    artist.set_visible(False)
AttributeError: QuadContourSet instance has no attribute 'set_visible'

Is this a Matplotlib bug, or am I still tracking down some package
dependency issue?



------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to