|
From: Andreas H. <li...@hi...> - 2012-02-29 07:28:03
|
> I think that what you want can be achieved more simply than contouring. > I've attached a quick example of how I would do this. I'm assuming that > the data has the same form as pcolormesh, i.e, the z values are measured > at grid centers but we have coordinate of the edges. This means that we > can easily check if a given pixel is above or below the contour level and > then we simply draw the appropriate gridlines. I'm not coalescing > neighboring lines, but that's also possible. > > If you're looking for something more complex than this simple in-or-out > partitioning, this approach might still work but I'm not sure, in that > case, that I understand what you're actually trying to do. Eric, I'm amazed -- thanks a lot :) Andreas. |