[GRASS-SVN] r65860 - grass/branches/releasebranch_7_0/display/d.vect.thematic

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 8 07:15:42 PDT 2015


Author: neteler
Date: 2015-08-08 07:15:42 -0700 (Sat, 08 Aug 2015)
New Revision: 65860

Modified:
   grass/branches/releasebranch_7_0/display/d.vect.thematic/d.vect.thematic.html
Log:
d.vect.thematic manual: example expanded (contributed by Vero Andreo)

Modified: grass/branches/releasebranch_7_0/display/d.vect.thematic/d.vect.thematic.html
===================================================================
--- grass/branches/releasebranch_7_0/display/d.vect.thematic/d.vect.thematic.html	2015-08-08 14:15:17 UTC (rev 65859)
+++ grass/branches/releasebranch_7_0/display/d.vect.thematic/d.vect.thematic.html	2015-08-08 14:15:42 UTC (rev 65860)
@@ -51,6 +51,29 @@
   nbclasses=5 colors=0:0:255,50:100:255,255:100:50,255:0:0,156:0:0
 </pre></div>
 
+To actually draw the legend for the polygons in the graphical
+display, the procedure is:
+
+<div class="code"><pre>
+# first save legend instructions to a file	
+d.vect.thematic -n map=communes2 column=pop/area algorithm=std \
+  nbclasses=5 colors=0:0:255,50:100:255,255:100:50,255:0:0,156:0:0 \
+  legendfile=legend_pop_dens  
+
+# open a monitor
+d.mon wx0
+
+# draw the map
+d.vect.thematic map=communes2 column=pop/area algorithm=std \
+  nbclasses=5 colors=0:0:255,50:100:255,255:100:50,255:0:0,156:0:0
+
+# draw the legend
+d.graph input=legend_pop_dens
+</pre></div>
+
+If you are not pleased with the legend, you can edit the legend file
+as you wish and run the process again. 
+
 <h2>SEE ALSO</h2>
 
 <em>



More information about the grass-commit mailing list