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: 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 jsyk (0,0) is the lower-left of the display frame
    • Options: 0-100
    • Default: 85.0,15.0
  • rotation=float β€” rotation angle in degrees (counter-clockwise, bestie) πŸ”„
    • 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 font file
  • charset=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