d.rast.leg(1grass)
π d.rast.leg π
okay so bestie, welcome to d.rast.leg from the GRASS User's Manual β it's the module that shows you a raster map AND its legend together, and honestly? it's giving organized. β¨
πΈ KEYWORDS πΈ
display, cartography, legend
β¨ SYNOPSIS β¨
d.rast.leg
d.rast.leg --help
d.rast.leg [-fns] map=name [lines=integer] [raster=name] [--help]
[--verbose] [--quiet] [--ui]
π Flags π
-fβ Flip legend. yes. just flip it. π-nβ Omit entries with missing label. no label, no entry, no problem π-sβ Draw smooth gradient. fancy. gradient-ified. π--helpβ Print usage summary. when u need the recap π«Ά--verboseβ Verbose module output. it will literally tell u everything π--quietβ Quiet module output. shhh. π€«--uiβ Force launching GUI dialog. going full GUI, main character energy π¦
π Parameters π
map=name[required] β Name of raster map to display. like, required required. u gotta give it a map. π€lines=integerβ Number of lines to appear in the legend. how much legend r we doing today πraster=nameβ Name of input raster map to generate legend from. the legend source, if u want a different one π
π« DESCRIPTION π«
d.rast.leg shows a raster map along with its legend. it's literally a whole production:
first it clears the entire screen, then divides it into a main (left) and a minor (right) frames, and displays a raster map in the main frame and the map legend in the minor frame. the main frame remains active when the program finishes, so when it's done, that's where u are. periodt. π
left = map. right = legend. that's the whole vibe check. β
π NOTES π
the legend may be flipped with the -f flag. πͺ
if the lines parameter is not given then the legend frame will display as many lines as number of categories in the map, otherwise, it will display the first lines minus 1 categories with the rest being truncated. so like, math. lines - 1. no cap. π’
the user may adjust the lines parameter or the size of graphics window to get an appropriate result. tweak until it slays. π
the user may specify a second raster map with the raster parameter from which the legend is generated. this is useful to visualize (time) series of raster maps with a common static legend instead of the default dynamic legend. so like, one legend to rule them all for ur series β iconic. β
π¨ bestie listen: to remove all frames when clearing the display, used.erase -f. like, ALL the frames. don't forget the-for they will linger. π
π§ EXAMPLE π§
in this example, the polar diagram of the 'aspect' angle map in the North Carolina sample dataset is generated:
g.region raster=landclass96 -p
d.rast.leg landclass96
look at her go. π¦
π SEE ALSO π
d.legend, d.erase, d.rast
π AUTHORS π
- Jianping Xu, Scott Madry, Rutgers University
- Markus Neteler
π₯ SOURCE CODE π₯
Available at: d.rast.leg source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole page bestie β this was the d.rast.leg manual for GRASS 8.5.0, brought to u by the lovely people at the GRASS Development Team (Β© 2003-2026) π go map something pretty, ily, bye π«Άβ¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms