1d.rast.leg(1) GRASS GIS User's Manual d.rast.leg(1)
2
3
4
6 d.rast.leg - Displays a raster map and its legend on a graphics window
7
9 display, cartography, legend
10
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
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
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) se‐
69 ries of raster maps with a common static legend instead of the default
70 dynamic legend.
71
72 To remove all frames when clearing the display, use d.erase -f.
73
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
81 d.legend, d.erase, d.rast
82
84 Jianping Xu, Scott Madry, Rutgers University
85 Markus Neteler
86
88 Available at: d.rast.leg source code (history)
89
90 Accessed: Saturday Jan 21 20:40:59 2023
91
92 Main index | Display index | Topics index | Keywords index | Graphical
93 index | Full index
94
95 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
96
97
98
99GRASS 8.2.1 d.rast.leg(1)