[GRASS-dev] Re: [GRASSGUI] New profiling module for wxgrass

Jachym Cepicky jachym.cepicky at gmail.com
Thu May 24 10:55:20 EDT 2007


hi,

I had to install all tree packages - now it works.

Great work!

jachym

Michael Barton píše v Po 21. 05. 2007 v 22:39 -0700:
> Do you have numeric, numarray, or numpy installed (and the proper one for
> your Python version)? Also, does the Pyplot demo work for you?
> 
> Michael
> 
> 
> On 5/21/07 10:25 PM, "Jachym Cepicky" <jachym.cepicky at gmail.com> wrote:
> 
> > Hi Michael,
> > 
> > it looks nice, but it does not seem to work for me. When I draw the
> > profile and click on the "create profile" button, I get:
> > 
> >   File "/usr/src/gis/grass/addons/gui/gui_modules/profile.py", line 320,
> > in CreateProfile
> >     self.pline = plot.PolyLine(self.datalist, colour='blue', width=2,
> > legend='Profile')
> >   File
> > "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/plot.py",
> > line 224, in __init__
> >     PolyPoints.__init__(self, points, attr)
> >   File
> > "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/plot.py",
> > line 124, in __init__
> >     self._points = _Numeric.array(points).astype(_Numeric.Float64)
> > ValueError: matrices are not aligned for copy
> > 
> > Thanks for this effort
> > 
> > Jachym
> > 
> > Michael Barton píše v Po 21. 05. 2007 v 16:27 -0700:
> >> 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
> >> _______________________________________________
> >> grassgui mailing list
> >> grassgui at grass.itc.it
> >> http://grass.itc.it/mailman/listinfo/grassgui
> 
> __________________________________________
> Michael Barton, Professor of Anthropology
> School of Human Evolution & Social Change
> Center for Social Dynamics & Complexity
> Arizona State University
> 
> phone: 480-965-6213
> fax: 480-965-7671
> www: http://www.public.asu.edu/~cmbarton
> 
> 
-- 
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070524/4c5c501f/attachment.bin


More information about the grass-dev mailing list