Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Jonathan Slavin <jslavin@cf...> - 2010-01-27 14:57:32
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.
Jonathan D. Slavin Harvard-Smithsonian CfA
jslavin@... 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
cell: (781) 363-0035 USA
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.