Przeglądaj źródła

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 lat temu
rodzic
commit
850e51f80e
2 zmienionych plików z 4 dodań i 3 usunięć
  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.out.file': 'export',
                  'd.to.rast': 'torast',
                  'd.to.rast': 'torast',
                  'd.text': 'text',
                  'd.text': 'text',
-                 'd.northarrow': 'northarrow'
+                 'd.northarrow': 'northarrow',
+                 'd.polar': 'polar'
                  }
                  }
 ltype2command = {}
 ltype2command = {}
 for (cmd, ltype) in command2ltype.items():
 for (cmd, ltype) in command2ltype.items():

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

@@ -76,8 +76,8 @@ def plot_dgraph():
     # window.
     # window.
     s = gcore.read_command('d.info', flags='d')
     s = gcore.read_command('d.info', flags='d')
     f = s.split()
     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
     # take shorter side as length of frame side
     min_side = min(frame_width, frame_height)
     min_side = min(frame_width, frame_height)