3
<em>d.rast.leg</em> shows a raster map along with its legend.
4
It first clears the entire screen, then divides it
5
into a main (left) and a minor (right) frames, and displays a raster
6
map in the main frame and the map legend in the minor frame. The main
7
frame remains active when the program finishes.
11
The legend may be flipped with the <b>-f</b> flag.
12
<p>If the <b>lines</b> parameter is not given then the legend frame will
13
display as many lines as number of categories in the map, otherwise, it
14
will display the first <b>lines</b> minus 1 categories with the
16
<p>The user may adjust the <b>lines</b> parameter or
17
the size of graphics window to get an appropriate result.
19
<p>The user may specify a second raster map with the <b>raster</b> parameter from
20
which the legend is generated. This is useful to visualize (time) series of
21
raster maps with a common static legend instead of the default dynamic legend.
22
<p>To remove all frames when clearing the display, use
27
In this example, the polar diagram of the 'aspect' angle map in the
28
North Carolina sample dataset location is generated:
30
<div class="code"><pre>
31
g.region raster=landclass96 -p
32
d.rast.leg landclass96
38
<a href="d.legend.html">d.legend</a>,
39
<a href="d.erase.html">d.erase</a>,
40
<a href="d.rast.html">d.rast</a>
45
Jianping Xu, Scott Madry, Rutgers University<br>
49
<i>Last changed: $Date: 2014-11-28 17:25:40 +0100 (Fri, 28 Nov 2014) $</i>