1d.rast.leg(1)               GRASS GIS User's Manual              d.rast.leg(1)
2
3
4

NAME

6       d.rast.leg  - Displays a raster map and its legend on a graphics window
7

KEYWORDS

9       display, cartography, legend
10

SYNOPSIS

12       d.rast.leg
13       d.rast.leg --help
14       d.rast.leg  [-fns] map=name  [lines=integer]   [raster=name]   [--help]
15       [--verbose]  [--quiet]  [--ui]
16
17   Flags:
18       -f
19           Flip legend
20
21       -n
22           Omit entries with missing label
23
24       -s
25           Draw smooth gradient
26
27       --help
28           Print usage summary
29
30       --verbose
31           Verbose module output
32
33       --quiet
34           Quiet module output
35
36       --ui
37           Force launching GUI dialog
38
39   Parameters:
40       map=name [required]
41           Name of raster map to display
42
43       lines=integer
44           Number of lines to appear in the legend
45
46       raster=name
47           Name of input raster map to generate legend from
48

DESCRIPTION

50       d.rast.leg shows a raster map along with its legend.  It  first  clears
51       the  entire  screen,  then  divides  it  into a main (left) and a minor
52       (right) frames, and displays a raster map in the main frame and the map
53       legend  in the minor frame. The main frame remains active when the pro‐
54       gram finishes.
55

NOTES

57       The legend may be flipped with the -f flag.
58
59       If the lines parameter is not given then the legend frame will  display
60       as  many  lines  as number of categories in the map, otherwise, it will
61       display the first lines minus 1 categories with the  rest  being  trun‐
62       cated.
63
64       The  user may adjust the lines parameter or the size of graphics window
65       to get an appropriate result.
66
67       The user may specify a second raster map with the raster parameter from
68       which  the  legend  is  generated.  This  is useful to visualize (time)
69       series of raster maps with  a  common  static  legend  instead  of  the
70       default dynamic legend.
71
72       To remove all frames when clearing the display, use d.erase -f.
73

EXAMPLE

75       In  this  example,  the  polar diagram of the ’aspect’ angle map in the
76       North Carolina sample dataset location is generated:
77       g.region raster=landclass96 -p
78       d.rast.leg landclass96
79

SEE ALSO

81        d.legend, d.erase, d.rast
82

AUTHORS

84       Jianping Xu, Scott Madry, Rutgers University
85       Markus Neteler
86

SOURCE CODE

88       Available at: d.rast.leg source code (history)
89
90       Main index | Display index | Topics index | Keywords index |  Graphical
91       index | Full index
92
93       © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
94
95
96
97GRASS 7.8.5                                                      d.rast.leg(1)
Impressum