[GRASS-SVN] r71958 - grass/branches/releasebranch_7_2/display/d.histogram

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 19 14:15:31 PST 2017


Author: lucadelu
Date: 2017-12-19 14:15:30 -0800 (Tue, 19 Dec 2017)
New Revision: 71958

Added:
   grass/branches/releasebranch_7_2/display/d.histogram/d_histogram_bar.png
   grass/branches/releasebranch_7_2/display/d.histogram/d_histogram_pie.png
Modified:
   grass/branches/releasebranch_7_2/display/d.histogram/d.histogram.html
Log:
d.histogram: added examples and figures, thanks to Jerry Huang and Google Code-in

Modified: grass/branches/releasebranch_7_2/display/d.histogram/d.histogram.html
===================================================================
--- grass/branches/releasebranch_7_2/display/d.histogram/d.histogram.html	2017-12-19 22:14:55 UTC (rev 71957)
+++ grass/branches/releasebranch_7_2/display/d.histogram/d.histogram.html	2017-12-19 22:15:30 UTC (rev 71958)
@@ -15,6 +15,36 @@
 <p><em>d.histogram</em> uses the colors in the map's color look-up table
 (i.e., the map's <em>colr</em> or <em>colr2</em> file).
 
+<h2>EXAMPLES</h2>
+
+Running the command below will generate the bar graph shown in the figure:
+
+<div class="code"><pre>
+g.region raster=elevation -p
+d.mon wx0
+d.histogram map=elevation
+</pre></div>
+
+<div align="center" style="margin: 10px">
+<img src="d_histogram_bar.png" alt="d.histogram bar graph example" border="0">
+<br>
+<i>Figure: Bar graph histogram for elevation map</i>
+</div>
+
+<p>
+Running the command below will generate the pie graph shown in the figure:
+
+<div class="code"><pre>
+g.region raster=landuse96_28m -p
+d.histogram map=landuse96_28m style=pie  
+</pre></div>
+
+<div align="center" style="margin: 10px">
+<img src="d_histogram_pie.png" alt="d.histogram pie graph example" border="0">
+<br>
+<i>Figure: Pie graph histogram for landuse map</i>
+</div>
+
 <h2>SEE ALSO</h2>
 
 <em>
@@ -22,6 +52,7 @@
 <a href="d.frame.html">d.frame</a>,
 <a href="d.graph.html">d.graph</a>,
 <a href="d.linegraph.html">d.linegraph</a>,
+<a href="d.mon.html">d.mon</a>,
 <a href="d.polar.html">d.polar</a>,
 <a href="g.region.html">g.region</a>,
 <a href="r.stats.html">r.stats</a>

Copied: grass/branches/releasebranch_7_2/display/d.histogram/d_histogram_bar.png (from rev 71956, grass/trunk/display/d.histogram/d_histogram_bar.png)
===================================================================
(Binary files differ)

Copied: grass/branches/releasebranch_7_2/display/d.histogram/d_histogram_pie.png (from rev 71956, grass/trunk/display/d.histogram/d_histogram_pie.png)
===================================================================
(Binary files differ)



More information about the grass-commit mailing list