[Matplotlib-users] contour question

2008-03-11 Thread humufr
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

Re: [Matplotlib-users] contour question

2008-03-11 Thread Michael Droettboom
.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