updating contours

?Well I've come up with a better approach now:
cs = ax.contour(...)

then to update, just remove via:
cs.collections[0].remove()
and create new contours
cs = ax.contour(...)

Jon?

···

On Tue, Oct 27, 2015 at 9:49 AM, <matplotlib-users-request at python.org> wrote:

Do you think it's worthy of a bug report? It's not clear to me that the
collections of the AxesSubplot should be considered as internal, though I
do think that QuadContourSet objects should have a remove method in the
same way that AxesImage and Line2D objects have.

Jon

On Tue, Oct 27, 2015 at 9:06 AM, Thomas Caswell <tcaswell at gmail.com> > wrote:

> That is a bug in something...
>
> On Tue, Oct 27, 2015, 08:53 Slavin, Jonathan <jslavin at cfa.harvard.edu> > > wrote:
>
>> Tom,
>>
>> Do you mean something like:
>> cs = ax.contour(...)
>> .
>> .
>> .
>> cs.remove()
>> If so, that doesn't work:
>> AttributeError: QuadContourSet instance has no attribute 'remove'
>>
>> Jon
>>

--
________________________________________________________
Jonathan D. Slavin Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
cell: (781) 363-0035 USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20151027/e1abd42d/attachment-0001.html>