[GRASS-SVN] r60348 - grass/branches/releasebranch_7_0/scripts/d.rast.leg

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


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

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

Modified: grass/branches/releasebranch_7_0/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/d.rast.leg/d.rast.leg.py	2014-05-19 19:20:06 UTC (rev 60347)
+++ grass/branches/releasebranch_7_0/scripts/d.rast.leg/d.rast.leg.py	2014-05-19 19:20:33 UTC (rev 60348)
@@ -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