瀏覽代碼

d.legend manual: example + screenshot added

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65718 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 年之前
父節點
當前提交
90f334c9e9
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      display/d.legend/d.legend.html
  2. 二進制
      display/d.legend/d_legend.png

+ 14 - 0
display/d.legend/d.legend.html

@@ -74,6 +74,20 @@ If the histogram appears empty, check your region settings.
 If the raster map's <i>units</i> metadata has been set with the
 If the raster map's <i>units</i> metadata has been set with the
 <em>r.support</em> module then it will be displayed along side the legend.
 <em>r.support</em> module then it will be displayed along side the legend.
 
 
+<h2>EXAMPLE</h2>
+
+Displaying the legend along with a histogram (North Carolina Sample dataset):
+
+<div class="code"><pre>
+g.region raster=elevation -p
+d.rast elevation
+d.legend -d elevation
+</pre></div>
+
+<center>
+<img src="d_legend.png" alt="Elevation map with legend" border=1>
+</center>
+
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
 
 

二進制
display/d.legend/d_legend.png