瀏覽代碼

wx scatterplot: update r.regression.line call

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66605 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 年之前
父節點
當前提交
b76b95d2a6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/wxplot/scatter.py

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

@@ -243,8 +243,8 @@ class ScatterFrame(BasePlotFrame):
             rast1 = rast1.split('@')[0] 
             rast1 = rast1.split('@')[0] 
             rast2 = rast2.split('@')[0] 
             rast2 = rast2.split('@')[0] 
             ret = grass.parse_command('r.regression.line', 
             ret = grass.parse_command('r.regression.line', 
-                                      map1 = rast1, 
-                                      map2 = rast2, 
+                                      mapx = rast1, 
+                                      mapy = rast2, 
                                       flags = 'g', quiet = True,
                                       flags = 'g', quiet = True,
                                       parse = (grass.parse_key_val, { 'sep' : '=' }))
                                       parse = (grass.parse_key_val, { 'sep' : '=' }))
             eqtitle = _('Regression equation for raster map <%(rast1)s> vs. <%(rast2)s>:\n\n') % \
             eqtitle = _('Regression equation for raster map <%(rast1)s> vs. <%(rast2)s>:\n\n') % \