.get_paths() returns a list of Path objects.  (See path.py).  For each 
Path object, you can get an Nx2 array of vertices from its "vertices" 
member.  You can also use the "iter_segments" method to iterate through 
each of its vertices, but that's primarily only useful when there may be 
bezier curves in the path, which there won't be in the case of contours.

Missing docstrings is definitely a problem that will need to be worked on.

Cheers,
Mike

[EMAIL PROTECTED] wrote:
>               Hello,
>
> I'm using a svn version of matplotlib and the API changed for contour. I want 
> to have the coordinate of the contour. Before Eric Firing (I think) gave a 
> solution to do it:
>
> val = contour(xRange,yRange,delchi2,[1])
> t = asarray(val.collections[0].get_verts())
>
> but now get_verts doesn't exist anymore.
>
> I tried to do:
>
> cs = contour(a)
> path = cs.collections[0].get_paths()
>
> but I don't know how to use it. Basically I think that I have the contour 
> coordinate but I don't know how to recuperate them. I need it to export them 
> in a data file so it's the reason I want to recuperate them.
>
> Thank you for any help
>
> N.
>
> ps: It's a little bit difficult to access to the help for a method now some, 
> perhaps most, of them are missing a docstring. So it's difficult to 
> understand what it is the meaning of each of them.
>
> example:
>
> col.get_paths?
> Type:           instancemethod
> Base Class:     <type 'instancemethod'>
> String Form:    <bound method LineCollection.get_paths of 
> <matplotlib.collections.LineCollection object at 0x9038a4c>>
> Namespace:      Interactive
> File:           /usr/lib/python2.5/site-packages/matplotlib/collections.py
> Definition:     col.get_paths(self)
> Docstring:
>     <no docstring>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to