瀏覽代碼

raster names in axes of bivariate scatter plot

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59342 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 11 年之前
父節點
當前提交
6ce3ec6a9c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/wxplot/scatter.py

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

@@ -131,8 +131,8 @@ class ScatterFrame(BasePlotFrame):
         #
         #
         # set xlabel & ylabel based on raster maps of first pair to be plotted
         # set xlabel & ylabel based on raster maps of first pair to be plotted
         #
         #
-        self.xlabel = _('Raster cell values')
-        self.ylabel = _('Raster cell values') 
+        self.xlabel = _('Raster <%s> cell values') % rpair[0].split('@')[0]
+        self.ylabel = _('Raster <%s> cell values') % rpair[1].split('@')[0]
         
         
         units = self.raster[self.rasterList[0]][0]['units']
         units = self.raster[self.rasterList[0]][0]['units']
         if units != '':
         if units != '':