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

Carlos "Guâno" Grohmann carlos.grohmann at gmail.com
Tue May 22 05:28:35 EDT 2007


Working fine here (Xubuntu 7.04). I installed all num*py stuff
(numarray, numpy, numeric).

Really nice the possibility to zoom in and out of the plot (at least
for me the left button was zoom in and the right button was zoom out).

Wishlits: export the plot in some vectorial format, such as svg, so we
can put that in a drawing program for final editing.


Carlos

PS: I get this error when I tried to set the region from display:

Set region from display:

Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
916, in DisplayToWind
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
NameError: global name 'Popen' is not defined








On 5/22/07, Jachym Cepicky <jachym.cepicky at gmail.com> wrote:
> hi,
>
> 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?
>
> yes for both (python-numeric), wxwidgets 2.8.1.1 from ubuntu package
>
> j
> >
> > 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
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>


-- 
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc  - Doctorate Student at IGc-USP - Brazil
Linux User #89721  - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke




More information about the grass-dev mailing list