Following up on the general gist of discussions about graphing, I created a new profiling module for wxgrass using the plot module in wxPython. Although the docs stated that it required numeric, numarray, or numpy as a dependency, it was not clear during development if this particular application of the plot module did indeed require this.
I’ve now tested it on another system and can verify that to run the new profile module (profile.py) you’ll need one of these dependent modules (any will work). They are available from a variety of sources. I’ll try to get together a list and put it in the README if we want to continue with this.
I will say that doing the profile with plot produced a very nice result (I’ve attached a screenshot here) with about 1/3 of the code I’d need to do it manually. It also makes it very easy to do other simple graphs (mainly line and point graphs, though bar graphs are also possible) with very little in the way of coding—built in save to file, printing, zooming, dragging, scrolling, and log scales for example.
Let me know what you think (after you’ve installed numeric/numarray/numpy).
Michael
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton