d.barscale(1)

πŸ’– d.barscale β€” the GRASS GIS User's Manual glow-up πŸ’–

okay bestie, sit down, hydrate, because we're talking about d.barscale from the GRASS GIS User's Manual and she is serving cartography realness ✨


🌸 NAME 🌸

d.barscale β€” she displays a barscale on the graphics monitor. that's it. that's the job. and she does it gorgeously πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

display, cartography

iykyk πŸ—ΊοΈ


✨ SYNOPSIS ✨

d.barscale
d.barscale --help
d.barscale [-ftn]  [style=string]   [at=x,y]   [length=integer]
[units=string]   [label=string]   [segment=integer]   [color=name]
[bgcolor=name]   [text_position=string]   [width_scale=float]
[font=string]   [fontsize=float]   [path=name]   [charset=string]
[--help]  [--verbose]  [--quiet]  [--ui]

literally just type it and go, no cap 🌈


🚩 Flags 🚩

  • -f β€” use feet/miles instead of meters 🦢 (imperial girlies rise)
  • -t β€” draw the scale bar without text. silent. mysterious. 🀫
  • -n β€” display north-arrow symbol. compass moment 🧭
  • --help β€” print usage summary 🫢
  • --verbose β€” verbose module output (she tells you everything) πŸ’¬
  • --quiet β€” quiet module output (she says nothing, iconic) 🀐
  • --ui β€” force launching GUI dialog πŸ–₯️✨

πŸŽ›οΈ Parameters πŸŽ›οΈ

  • style=string β€” type of barscale to draw
    • Options: classic, line, solid, hollow, full_checker, part_checker, mixed_checker, tail_checker, up_ticks, down_ticks, both_ticks, arrow_ends
    • Default: classic
      • classic: Classic style πŸ‘‘
      • line: Line style
      • solid: Solid style
      • hollow: Hollow style
      • full_checker: Full checker style 🏁
      • part_checker: Part checker style
      • mixed_checker: Mixed checker style
      • tail_checker: Tail checker style
      • up_ticks: Up ticks style ⬆️
      • down_ticks: Down ticks style ⬇️
      • both_ticks: Both ticks style ↕️
      • arrow_ends: Arrow ends style ➑️
  • at=x,y β€” screen coordinates of the rectangle's top-left corner. reminder that (0,0) is the lower-left of the display frame, okay? don't get it twisted πŸ“
    • Options: 0-100
    • Default: 0.0,10.0
  • length=integer β€” length of barscale in map units πŸ“
    • Options: 0-
    • Default: 0
  • units=string β€” barscale units to display
    • Options: meters, kilometers, feet, miles
  • label=string β€” custom label of unit. make it your moment 🏷️
  • segment=integer β€” number of segments
    • Options: 1-100
    • Default: 10
  • color=name β€” bar scale and text color
    • Either a standard color name or R:G:B triplet
    • Default: black πŸ–€
  • bgcolor=name β€” background color (drawn behind the bar)
    • Either a standard color name, R:G:B triplet, or "none"
    • Default: white 🀍
  • text_position=string β€” text position
    • Options: under, over, left, right
    • Default: right
  • width_scale=float β€” scale factor to change bar width
    • Options: 0.5-100
    • Default: 1
  • font=string β€” font name πŸ”€
  • fontsize=float β€” font size
    • Options: 1-360
    • Default: 12
  • path=name β€” path to font file πŸ“
  • charset=string β€” text encoding (only applicable to TrueType fonts)

πŸ¦‹ DESCRIPTION πŸ¦‹

so d.barscale displays a barscale on the graphics monitor at the given screen coordinates. and if you give her no coordinates? she just draws the barscale in the bottom left of the display like the self-sufficient queen she is πŸ’…

the barscale can be drawn in a number of styles β€” peek the style parameter for their previews πŸ‘€βœ¨


⚠️ NOTE ⚠️

bestie. listen. d.barscale will not work with Lat/Lon coordinate reference system because the horizontal scale distance changes with latitude 😭 the math simply does not math there. try d.grid instead 🫢

πŸ‘€ SEE ALSO πŸ‘€

d.graph, d.grid, d.legend, d.northarrow, g.region

the whole friend group fr fr πŸ«‚


πŸ‘‘ AUTHORS πŸ‘‘

Unknown, from USACE/CERL. Major rewrite for GRASS 7 by Hamish Bowman

(we don't know who the first one was but they ate. and Hamish did the GRASS 7 glow-up ✨)


πŸ’» SOURCE CODE πŸ’»

Available at: d.barscale source code (history)

Accessed: Saturday Jan 17 05:40:35 2026

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


and that's the whole page, bestie πŸ’– this was pulled from the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and you were reading d.barscale(1) from GRASS 8.4.2 🌈 periodt, go draw a scale bar, ily πŸ«ΆπŸ’…πŸŽ€

πŸ“¦ where this page comes from