|
@@ -15,6 +15,36 @@ and the current MASK (if one exists).
|
|
<p><em>d.histogram</em> uses the colors in the map's color look-up table
|
|
<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).
|
|
(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>
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
<em>
|
|
<em>
|
|
@@ -22,6 +52,7 @@ and the current MASK (if one exists).
|
|
<a href="d.frame.html">d.frame</a>,
|
|
<a href="d.frame.html">d.frame</a>,
|
|
<a href="d.graph.html">d.graph</a>,
|
|
<a href="d.graph.html">d.graph</a>,
|
|
<a href="d.linegraph.html">d.linegraph</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="d.polar.html">d.polar</a>,
|
|
<a href="g.region.html">g.region</a>,
|
|
<a href="g.region.html">g.region</a>,
|
|
<a href="r.stats.html">r.stats</a>
|
|
<a href="r.stats.html">r.stats</a>
|