d.northarrow(1grass)
β¨ NAME β¨
okay bestie, meet d.northarrow β the icon that literally just... displays a north arrow on the graphics monitor π
it's giving cartography main character energy, no cap.
π KEYWORDS π
display, cartography, map annotations, arrow
π SYNOPSIS π
d.northarrow
d.northarrow --help
d.northarrow [-twr] [style=string] [at=x,y] [rotation=float]
[label=string] [color=name] [fill_color=name] [text_color=name]
[width=float] [font=string] [fontsize=float] [path=name]
[charset=string] [--help] [--verbose] [--quiet] [--ui]
β¨ Flags β¨
-tβ draw the symbol but with NO text, silent era fr π-wβ do not rotate the text along with the symbol, text stays unbothered-rβ use radians instead of degrees for the rotation, spicy math units π₯--helpβ prints the usage summary, your little cheat sheet--verboseβ verbose module output, it will spill the tea--quietβ quiet module output, it will NOT spill the tea π€«--uiβ force launching the GUI dialog, for the visual girlies
π Parameters π
style=stringβ the north arrow style, pick your vibe- Options:
1a,1b,2,3,4,5,6,7a,7b,8a,8b,9,fancy_compass,basic_compass,arrow1,arrow2,arrow3,star - Default:
1a1a: Two color arrowhead1b: Two color arrowhead with circle2: Narrow with blending N3: Long with small arrowhead4: Inverted narrow inside a circle5: Triangle and N inside a circle6: Arrowhead and N inside a circle7a: Tall half convex arrowhead7b: Tall half concave arrowhead8a: Thin arrow in a circle8b: Fat arrow in a circle9: One color arrowheadfancy_compass: Fancy compassbasic_compass: Basic compassarrow1: Simple arrowarrow2: Thin arrowarrow3: Fat arrowstar: 4-point star
- Options:
at=x,yβ screen coordinates of the rectangle's top-left corner, and jsyk(0,0)is the lower-left of the display frame- Options:
0-100 - Default:
85.0,15.0
- Options:
rotation=floatβ rotation angle in degrees (counter-clockwise, bestie) π- Default:
0
- Default:
label=stringβ the letter displayed on the top of the arrow- Default:
N
- Default:
color=nameβ line color. either a standard color name, anR:G:Btriplet, or"none"- Default:
black
- Default:
fill_color=nameβ fill color. either a standard color name, anR:G:Btriplet, or"none"- Default:
black
- Default:
text_color=nameβ text color. either a standard color name or anR:G:Btripletwidth=floatβ line width- Default:
0
- Default:
font=stringβ font namefontsize=floatβ font size- Options:
1-360 - Default:
14
- Options:
path=nameβ path to font filecharset=stringβ text encoding (only applicable to TrueType fonts, iykyk)
π DESCRIPTION π
so d.northarrow displays a north arrow symbol at whatever screen coordinates you give it. if you give it no coordinates at all, it's gonna draw that north arrow in the bottom right of the display, casual. and it can draw the north arrow in a whole bunch of styles (peep the wiki page for the deets, bestie). with certain styles of north arrow, the label 'N' is displayed by default, and you can change it with the label option β handy for different languages, slay. and if you wanna hide the label entirely, that's what the -t flag is for.
the north arrow can also be rotated, for example to align with true north and not grid north π. the angle in degrees counter-clockwise (or radians if you use the -r flag) gets specified with the rotation option. and the label rotates together with the arrow, unless you specify the -w flag. periodt.
πΈ EXAMPLES πΈ
display a north arrow symbol as a basic compas with label NORTH, rotated by 8 degrees with label, with black line and gray fill:
d.mon wx0
d.northarrow style=basic_compas rotation=8 label=NORTH -w color=black fill_color=gray
d.mon -r
π¦ SEE ALSO π¦
d.barscale, d.graph, d.grid, d.legend
π AUTHORS π
Hamish Bowman, Department of Geology, University of Otago, New Zealand
Improvements as part of GSoC 2016 by Adam Laza, CTU in Prague
π SOURCE CODE π
Available at: d.northarrow source code (history)
Latest change: Tuesday Feb 11 14:24:00 2025 in commit: bd67b98c0880c588e271f114b749ae14fa3e0466
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
okay that's the whole thing bestie, we ate and left no crumbs π this was d.northarrow from the GRASS 8.5.0 User's Manual (last touched Tuesday Feb 11 14:24:00 2025, commit bd67b98c0880c588e271f114b749ae14fa3e0466) β go draw that arrow, you got this πβ¨π«Ά
π¦ 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