[Matplotlib-users] updating contours

Nicolas P. Rougier Nicolas.Rougier at inria.fr
Mon Oct 26 16:36:41 EDT 2015


If you only need (a lot of) contours on (a lot of) images, vispy or glumpy might be an option (they both use GPU to compute contours).
See for example: http://glumpy.github.io/_static/screenshots/isocurves.png



Nicolas

> On 26 Oct 2015, at 16:07, Michael Droettboom <mdroettboom at continuum.io> wrote:
> 
> You're correct that there is no equivalent -- contour is one of those "computed" things that can't be directly updated from the original data.  You don't need to do a whole `cla()` though.  Removing the contour artist and calling contour again should be sufficient.
> 
> Mike
> 
> On Fri, Oct 23, 2015 at 11:56 AM, Slavin, Jonathan <jslavin at cfa.harvard.edu> wrote:
> Hi,
> 
> I'm looking at a series of images and want to include overplotted contours.  To update the image I just need to use the set_data() method of the AxesImage object.  However, as far as I can tell, there's nothing similar for the QuadContourSet object.  I tried set_array() but that didn't work.  Am I missing something?  Does anyone have any suggestions for how to update the contours?  Of course if necessary I could do a cla(), but that would be slow, I think.
> 
> Regards,
> 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
> ________________________________________________________
> 
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
> 
> 
> 
> 
> -- 
> Michael Droettboom
> Continuum Analytics
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users



More information about the Matplotlib-users mailing list