瀏覽代碼

d.polar: broken since https://trac.osgeo.org/grass/changeset/64459, fixed and enabled from GUI

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68391 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父節點
當前提交
850e51f80e
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 2 1
      gui/wxpython/core/utils.py
  2. 2 2
      scripts/d.polar/d.polar.py

+ 2 - 1
gui/wxpython/core/utils.py

@@ -1021,7 +1021,8 @@ command2ltype = {'d.rast': 'raster',
                  'd.out.file': 'export',
                  'd.to.rast': 'torast',
                  'd.text': 'text',
-                 'd.northarrow': 'northarrow'
+                 'd.northarrow': 'northarrow',
+                 'd.polar': 'polar'
                  }
 ltype2command = {}
 for (cmd, ltype) in command2ltype.items():

+ 2 - 2
scripts/d.polar/d.polar.py

@@ -76,8 +76,8 @@ def plot_dgraph():
     # window.
     s = gcore.read_command('d.info', flags='d')
     f = s.split()
-    frame_width = float(f[1])
-    frame_height = float(f[2])
+    frame_width = float(f[2])
+    frame_height = float(f[3])
 
     # take shorter side as length of frame side
     min_side = min(frame_width, frame_height)