[GRASS-SVN] r60347 - grass/trunk/scripts/d.rast.leg

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 19 12:20:06 PDT 2014


Author: neteler
Date: 2014-05-19 12:20:06 -0700 (Mon, 19 May 2014)
New Revision: 60347

Modified:
   grass/trunk/scripts/d.rast.leg/d.rast.leg.py
Log:
d.rast.leg: put title on top of legend

Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2014-05-19 13:06:04 UTC (rev 60346)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2014-05-19 19:20:06 UTC (rev 60347)
@@ -118,7 +118,7 @@
     make_frame(f, 90, 100, 70, 100)
     # use map name without mapset suffix
     mapname = map.split('@')[0]
-    grass.run_command('d.text', color='black', size=5, at='5,50', align='cl', text=mapname)
+    grass.run_command('d.text', color='black', size=5, at='5,97', align='cl', text=mapname)
 
     #draw legend
     
@@ -144,7 +144,7 @@
     if kv['datatype'] is 'CELL':
         leg_at = None
     else:
-        leg_at = '%f,95,5,15' %VSpacing        
+        leg_at = '%f,95,5,10' %VSpacing        
 
 # checking for histogram causes more problems than it solves
 #    histfiledir = grass.find_file(lmap, 'cell_misc')['file']



More information about the grass-commit mailing list