Browse Source

d.vect.thematic manual: example expanded (contributed by Vero Andreo)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65860 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 years ago
parent
commit
65308f4bb4
1 changed files with 23 additions and 0 deletions
  1. 23 0
      display/d.vect.thematic/d.vect.thematic.html

+ 23 - 0
display/d.vect.thematic/d.vect.thematic.html

@@ -51,6 +51,29 @@ d.vect.thematic -l 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
 </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>