|
From: John H. <jdh...@ac...> - 2004-12-10 20:45:21
|
>>>>> "Chris" == Chris Barker <Chr...@no...> writes:
Chris> Perry Greenfield wrote:
>>> Actually, I believe that the low level contour engine we are
>>> using supports this. It takes 2-d arrays for both x and y that
>>> represent the x and y coordinates of the array being contoured
>>> and generates plotting points based on those x and y
>>> arrays. These arrays allow for irregular grids.
Chris> completely irregular? or only orthogonal structured
Chris> grids. From your description, it sounds like the
Chris> later. Could it take an unstructured set of (x,y,z) points
Chris> and contour the z values?
The latter, I believe. The contouring routine was implemented by
Nadia Dencheva (CCd on this mail) and is based on a gist routine. You
can read more about the core routine at
http://scipy.net/cgi-bin/viewcvsx.cgi/*checkout*/scipy1/xplt/src/gist/gcntr.c?rev=HEAD&content-type=text/plain.
The contour routines have been checked into CVS. A simple example can
be found in examples/contour_demo.py in CVS. We have some rudimentary
support for labeling (auto-legend and/or brute-force use of the text
command). It would be nice to develop a point and click labeling
widget and/or an auto-labeling routine. Contributors of course always
welcome!
JDH
|