<div dir="ltr"><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Well I've come up with a better approach now:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">cs = ax.contour(...)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">then to update, just remove via:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">cs.collections[0].remove()</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">and create new contours</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">cs = ax.contour(...)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Jon​</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 9:49 AM,  <span dir="ltr"><<a href="mailto:matplotlib-users-request@python.org" target="_blank">matplotlib-users-request@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1xu" class="a3s" style="overflow:hidden">Do you think it's worthy of a bug report?  It's not clear to me that the<br>
collections of the AxesSubplot should be considered as internal, though I<br>
do think that QuadContourSet objects should have a remove method in the<br>
same way that AxesImage and Line2D objects have.<br>
<br>
Jon<br>
<br>
On Tue, Oct 27, 2015 at 9:06 AM, Thomas Caswell <<a href="mailto:tcaswell@gmail.com">tcaswell@gmail.com</a>> wrote:<br>
<br>
> That is a bug in something...<br>
><br>
> On Tue, Oct 27, 2015, 08:53 Slavin, Jonathan <<a href="mailto:jslavin@cfa.harvard.edu">jslavin@cfa.harvard.edu</a>><br>
> wrote:<br>
><br>
>> Tom,<br>
>><br>
>> Do you mean something like:<br>
>> cs = ax.contour(...)<br>
>> .<br>
>> .<br>
>> .<br>
>> cs.remove()<br>
>> If so, that doesn't work:<br>
>> AttributeError: QuadContourSet instance has no attribute 'remove'<br>
>><br>
>> Jon<br>
>></div></blockquote></div><br><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: (617) 496-7981       Cambridge, MA 02138-1516<br>cell: (781) 363-0035             USA<br>________________________________________________________<br><br></div></div></div></div>
</div></div>