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 arrowhead
    • 1b: two color arrowhead with circle
    • 2: narrow with blending N
    • 3: long with small arrowhead
    • 4: inverted narrow inside a circle
    • 5: triangle and N inside a circle
    • 6: arrowhead and N inside a circle
    • 7a: tall half convex arrowhead
    • 7b: tall half concave arrowhead
    • 8a: thin arrow in a circle
    • 8b: fat arrow in a circle
    • 9: one color arrowhead
    • fancy_compass: fancy compass πŸ’…
    • basic_compass: basic compass
    • arrow1: simple arrow
    • arrow2: thin arrow
    • arrow3: fat arrow
    • star: 4-point star ⭐
  • 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
  • rotation=float β€” rotation angle in degrees, counter-clockwise. spin it πŸŒ€
    • Default: 0
  • label=string β€” the letter displayed on the top of the arrow.
    • Default: N
  • color=name β€” line color. either a standard color name, an R:G:B triplet, or "none".
    • Default: black
  • fill_color=name β€” fill color. either a standard color name, an R:G:B triplet, or "none".
    • Default: black
  • text_color=name β€” text color. either a standard color name or an R:G:B triplet.
  • width=float β€” line width.
    • Default: 0
  • font=string β€” font name.
  • fontsize=float β€” font size.
    • Options: 1-360
    • Default: 14
  • 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.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)

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