Browse Source

wxgui: a nicer autotitle for profiles

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48585 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 năm trước cách đây
mục cha
commit
3ebdb02daa
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      gui/wxpython/gui_modules/wxplot.py

+ 2 - 2
gui/wxpython/gui_modules/wxplot.py

@@ -823,9 +823,9 @@ class ProfileFrame(AbstractPlotFrame):
             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