one thing you can do is to get the (x, y)-values of the calculated
cs = plt.contour(z, levels=)
a = cs.collections.get_paths().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.
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 just occurred to me a way of creating the plot -- but I'm still
> interested in a way to save contour data.