Add standalone mapscale() function#1918
Merged
Merged
Conversation
Convenience wrapper around basemap that draws map scale bars (-L). Extracts scale-specific options (anchor, scale_at_lat, length, fancy, label, align, units, etc.) as top-level kwargs. Uses Dict-based dispatch pattern to avoid recompilation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1918 +/- ##
==========================================
- Coverage 85.79% 85.52% -0.27%
==========================================
Files 186 186
Lines 27510 27157 -353
==========================================
- Hits 23601 23226 -375
- Misses 3909 3931 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mapscale()/mapscale!()convenience function that wrapsbasemapfor drawing map scale bars (-L)anchor,scale_at_lat,length,fancy,label,align,units,vertical, etc.) are top-level kwargsframe=:noneso only the scale bar is drawnTest plan
mapscale!) reusing existing plot R/Jframe=:none(no axes drawn)units,align,label,fancy,box🤖 Generated with Claude Code