浏览代码

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 年之前
父节点
当前提交
3ebdb02daa
共有 1 个文件被更改,包括 2 次插入2 次删除
  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