Re: [Matplotlib-users] Inner boundaries in tricontourf

2011-08-31 Thread Ian Thomas
I forgot to mention the obvious solution! Outer boundaries are ordered anticlockwise, inner boundaries clockwise. Calculate the area of each boundary assuming it is ordered anticlockwise, and if the area is positive it is an outer boundary, if negative it is an inner boundary. I've attached a mo

Re: [Matplotlib-users] Inner boundaries in tricontourf

2011-08-31 Thread Ian Thomas
On 30 August 2011 18:23, Tijs de Kler wrote: > Im trying to use the tricontourf function in matplotlib to reduce the > complexity of an unstructured dataset into contours. > The resulting contours are retrieved from the path by the to_polygon() > function, but i have some trouble distinguishing i

[Matplotlib-users] Inner boundaries in tricontourf

2011-08-30 Thread Tijs de Kler
Hey Matplotlib users, Im trying to use the tricontourf function in matplotlib to reduce the complexity of an unstructured dataset into contours. The resulting contours are retrieved from the path by the to_polygon() function, but i have some trouble distinguishing inner boundaries on the polygo