Skip to content

Add standalone compass() function#1917

Merged
joa-quim merged 1 commit into
masterfrom
add-compass-function
Feb 17, 2026
Merged

Add standalone compass() function#1917
joa-quim merged 1 commit into
masterfrom
add-compass-function

Conversation

@joa-quim
Copy link
Copy Markdown
Member

Summary

  • Add compass() / compass!() convenience function that wraps basemap for drawing directional and magnetic compass roses
  • Auto-selects -Td (directional) vs -Tm (magnetic) based on whether dec kwarg is provided
  • When called standalone without region/proj, creates a paper-coordinates canvas sized to fit the rose automatically
  • All compass sub-options (anchor, width, fancy, dec, annot, rose_primary, etc.) are top-level kwargs
  • Uses the Dict-based dispatch pattern (no kwargs in the main function) to avoid recompilation

Test plan

  • Standalone directional rose with auto canvas/centering
  • Standalone with labels, anchor, explicit paper coords
  • Standalone with explicit R/J (user-controlled positioning)
  • Magnetic compass with dec, annot, rose_primary/secondary
  • Overlay mode (compass!) reusing existing plot R/J
  • Default frame=:none (no axes drawn)

🤖 Generated with Claude Code

Convenience wrapper around basemap that auto-selects directional (-Td)
vs magnetic (-Tm) rose based on whether `dec` is provided. When called
standalone without region/proj, creates a paper-coordinates canvas
sized to fit the rose automatically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.86%. Comparing base (53991bb) to head (8fdf2e6).

Files with missing lines Patch % Lines
src/compass.jl 95.45% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1917      +/-   ##
==========================================
+ Coverage   85.82%   85.86%   +0.03%     
==========================================
  Files         185      186       +1     
  Lines       27467    27511      +44     
==========================================
+ Hits        23573    23621      +48     
+ Misses       3894     3890       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joa-quim joa-quim merged commit 5be0b89 into master Feb 17, 2026
6 of 7 checks passed
@joa-quim joa-quim deleted the add-compass-function branch February 17, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants