[Matplotlib-users] contour question

2008年3月11日 08:44:29 -0700

 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

Reply via email to