[GRASS-SVN] r48585 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 1 13:15:41 EDT 2011


Author: cmbarton
Date: 2011-10-01 10:15:41 -0700 (Sat, 01 Oct 2011)
New Revision: 48585

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxplot.py
Log:
wxgui: a nicer autotitle for profiles

Modified: grass/trunk/gui/wxpython/gui_modules/wxplot.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxplot.py	2011-10-01 16:21:04 UTC (rev 48584)
+++ grass/trunk/gui/wxpython/gui_modules/wxplot.py	2011-10-01 17:15:41 UTC (rev 48585)
@@ -823,9 +823,9 @@
             self.raster[r]['datalist'] = self.CreateDatalist(r, self.coordstr)
 
             # update title
-            self.ptitle += ' %s and' % r
+            self.ptitle += ' %s ,' % r.split('@')[0]
 
-        self.ptitle = self.ptitle.rstrip('and')
+        self.ptitle = self.ptitle.rstrip(',')
 
         #
         # set ylabel to match units if they exist



More information about the grass-commit mailing list