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:
classicclassic: Classic style πline: Line stylesolid: Solid stylehollow: Hollow stylefull_checker: Full checker style πpart_checker: Part checker stylemixed_checker: Mixed checker styletail_checker: Tail checker styleup_ticks: Up ticks style β¬οΈdown_ticks: Down ticks style β¬οΈboth_ticks: Both ticks style βοΈarrow_ends: Arrow ends style β‘οΈ
- Options:
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
- Options:
length=integerβ length of barscale in map units π- Options:
0- - Default:
0
- Options:
units=stringβ barscale units to display- Options:
meters,kilometers,feet,miles
- Options:
label=stringβ custom label of unit. make it your moment π·οΈsegment=integerβ number of segments- Options:
1-100 - Default:
10
- Options:
color=nameβ bar scale and text color- Either a standard color name or
R:G:Btriplet - Default:
blackπ€
- Either a standard color name or
bgcolor=nameβ background color (drawn behind the bar)- Either a standard color name,
R:G:Btriplet, or"none" - Default:
whiteπ€
- Either a standard color name,
text_position=stringβ text position- Options:
under,over,left,right - Default:
right
- Options:
width_scale=floatβ scale factor to change bar width- Options:
0.5-100 - Default:
1
- Options:
font=stringβ font name π€fontsize=floatβ font size- Options:
1-360 - Default:
12
- Options:
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.barscalewill not work with Lat/Lon coordinate reference system because the horizontal scale distance changes with latitude π the math simply does not math there. tryd.gridinstead π«Ά
π 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
- fedora 44: grass 8.4.2-4.fc44 Β· 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