Hi Jon,

one thing you can do is to get the (x, y)-values of the calculated 
contourlines:

cs = plt.contour(z, levels=[0])
a = cs.collections[0].get_paths()[0].vertices
# -> array of shape (..., 2) hold x and y in first and second column

I don't know wheter this is the best way, but at least for me it works.

Kind regards,
Matthias

On Wednesday 27 January 2010 15:14:27 Jonathan Slavin wrote:
> To matplotusers:
>
> I want to create a plot that has an image and overplots contours, but
> the contours are defined relative to different data from that plotted in
> the image.  Is there a way to save contour line data rather than plot
> it.
>
> It just occurred to me a way of creating the plot -- but I'm still
> interested in a way to save contour data.
>
> Jon



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to