[GRASS-SVN] r71956 - grass/trunk/display/d.histogram

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


Author: lucadelu
Date: 2017-12-19 14:14:05 -0800 (Tue, 19 Dec 2017)
New Revision: 71956

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

Modified: grass/trunk/display/d.histogram/d.histogram.html
===================================================================
--- grass/trunk/display/d.histogram/d.histogram.html	2017-12-19 16:31:06 UTC (rev 71955)
+++ grass/trunk/display/d.histogram/d.histogram.html	2017-12-19 22:14:05 UTC (rev 71956)
@@ -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>

Added: grass/trunk/display/d.histogram/d_histogram_bar.png
===================================================================
(Binary files differ)


Property changes on: grass/trunk/display/d.histogram/d_histogram_bar.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: grass/trunk/display/d.histogram/d_histogram_pie.png
===================================================================
(Binary files differ)


Property changes on: grass/trunk/display/d.histogram/d_histogram_pie.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the grass-commit mailing list