d.northarrow(1)
π d.northarrow π
okay bestie, listen up β this is the GRASS GIS User's Manual page for d.northarrow, and it's literally the little compass rose of your dreams. it puts a north arrow on the graphics monitor. that's it. that's the whole job. and it ATE. π§β¨
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β draws the symbol and NOT the text. bye bye label π-wβ do not rotate the text along with the symbol. the arrow spins, the letters stay put. lowkey iconic.-rβ use radians instead of degrees for the rotation. yes queen, math mode π--helpβ prints the usage summary, for when you're confused (we've all been there)--verboseβ verbose module output, aka it tells you EVERYTHING π£οΈ--quietβ quiet module output, aka it says nothing at all π€«--uiβ force launches the GUI dialog. point-and-click girlies rise up π«Ά
π PARAMETERS π
style=stringβ the north arrow style. so many vibes to choose from.- Options:
1a,1b,2,3,4,5,6,7a,7b,8a,8b,9,fancy_compass,basic_compass,arrow1,arrow2,arrow3,star - Default:
1a 1a: 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 compass πbasic_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 psst β(0,0)is the lower-left of the display frame, not the top, don't get got.- Options:
0-100 - Default:
85.0,15.0
- Options:
rotation=floatβ rotation angle in degrees, counter-clockwise. spin it π- 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:Btriplet.width=floatβ line width.- Default:
0
- Default:
font=stringβ font name.fontsize=floatβ font size.- Options:
1-360 - Default:
14
- Options:
path=nameβ path to the font file.charset=stringβ text encoding (only applicable to TrueType fonts, so if that's not your font situation, this does nothing for you)
π DESCRIPTION π
so d.northarrow displays a north arrow symbol at the given screen coordinates. if you don't give it coordinates, it'll just draw the north arrow in the bottom right of the display β it knows what it's doing, trust. π«Ά
it can draw the north arrow in a number of styles (go check the wiki page for the details, iykyk). with certain styles of north arrow, the label 'N' is displayed by default, and you can change it with option label β for example for different languages. you can also hide the label entirely with the -t flag. multilingual queen π
the north arrow can be rotated, for example to align with true north, not grid north. the angle in degrees counter-clockwise (or radians with the -r flag) gets specified with option rotation. the label rotates together with the arrow, unless the -w flag is specified.
πΈ 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
(yes, the style in the example is spelled basic_compas β that's exactly how it's written in the manual, bestie, i don't make the rules π)
π₯ SEE ALSO π₯
d.barscaled.graphd.gridd.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)
Accessed: Saturday Jan 17 05:40:36 2026
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
okay that's the whole page bestie, no cap, every flag and every style survived the vibe check β
and that's the tea from GRASS 8.4.2 β the d.northarrow(1) manual page, accessed Saturday Jan 17 05:40:36 2026. slay, go draw a compass. π§β¨
π¦ 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