d.labels(1grass)

πŸ’– d.labels πŸ’–

okay bestie, so this is d.labels from the GRASS User's Manual β€” she's a display module and she is so good at what she does, like genuinely. Let's get into it. πŸŽ€


✨ NAME ✨

d.labels β€” she displays text labels (the ones you made with v.label, mwah) onto the active frame on the graphics monitor. that's it. that's her whole job and she ate. πŸ’…


πŸ”‘ KEYWORDS πŸ”‘

display, paint labels


🌸 SYNOPSIS 🌸

d.labels
d.labels --help
d.labels [-i] labels=string  [minreg=float]   [maxreg=float]   [--help]
[--verbose]  [--quiet]  [--ui]

🫢 Flags 🫢

  • -i β€” ignore the rotation setting and just draw everything horizontally. no tilt, no drama. πŸ“
  • --help β€” prints the usage summary, aka the "what does this even do" button
  • --verbose β€” verbose module output (she gets chatty πŸ’¬)
  • --quiet β€” quiet module output (she goes silent 🀫)
  • --ui β€” forces a GUI dialog to launch, for when you want the pretty buttons instead of the terminal ✨

🧚 Parameters 🧚

  • labels=string [required] β€” the name of your label file. required required, no skipping, this is the main character 🎯
  • minreg=float β€” minimum region size (diagonal) for when labels get displayed
  • maxreg=float β€” maximum region size (diagonal) for when labels get displayed

πŸ’œ DESCRIPTION πŸ’œ

so d.labels displays a paint label file in the active display frame on the graphics monitor. each label in there has its own lil components that decide: the text itself, where that text sits on the image, how big it is, and what background it gets behind it. ✨

and the file? it can be generated with the v.label program, or honestly you can just rawdog it β€” create it yourself as an ASCII file with a text editor and drop it in the right directory under your current mapset and project. that path is:

$MAPSET/paint/labels/

iykyk. πŸ¦‹


πŸ“ NOTES πŸ“

ngl, not all the info stored in the label file actually gets used by d.labels. some of that extra info is there for other programs like ps.map to snack on. so don't panic if it looks like stuff is being ignored β€” it's just reserved for her friends. πŸ’€

also a history moment: this module was formerly known as d.paint.labels. the old version of d.labels from GRASS 5 β€” the one that gave you interactive placement and modification of paint labels β€” still needs to have its functionality merged into this module. so basically the glow-up is not fully complete yet, and that's just the way it is right now. 🌈


πŸ‘€ SEE ALSO πŸ‘€

  • d.font
  • d.text
  • d.title
  • ps.map
  • v.label

πŸ‘‘ AUTHOR πŸ‘‘

James Westervelt, U.S. Army Construction Engineering Research Laboratory


πŸŽ€ SOURCE CODE πŸŽ€

Available at: d.labels source code (history)

Latest change: Friday Apr 17 01:04:26 2026 in commit: 32a143358df26b2e518b03c7e0d79541e8d1e5b1

Main index | Display index | Topics index | Keywords index | Graphical index | Full index


okay so that's literally the whole page, bestie. go display those labels. slay. πŸ’–

and a cute lil sign-off for you: this is all from the GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team, and the whole thing is GRASS 8.5.0 β€” periodt. 🌟

πŸ“¦ where this page comes from