Add Figure.magnetic_rose to plot a magnetic rose on map#4051
Merged
Conversation
6 tasks
9 tasks
a525760 to
be5f819
Compare
michaelgrund
approved these changes
Dec 17, 2025
Member
Author
|
@yvonnefroehlich Please review #4014 first. I'll make further changes to this PR when PR #4014 is finalized. |
27 tasks
aa49ffc to
13ea8cb
Compare
Contributor
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)DetailsAdded images
Modified images
Report last updated at commit 5dcd644 |
Member
Author
13ea8cb to
98d0a0d
Compare
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Member
yvonnefroehlich
left a comment
There was a problem hiding this comment.
Around line 44: Need to add this high-level method to the list after merging the PR for Figure.directional_rose.
yvonnefroehlich
approved these changes
Jan 22, 2026
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.


This PR implements the
Figure.magnetic_rosemethod to plot a magnetic rose. It wraps thebasemap/coast's-Tmoption.Preview: https://pygmt-dev--4051.org.readthedocs.build/en/4051/api/generated/pygmt.Figure.magnetic_rose.html
The GMT CLI syntax is
The Pythonic long-form parameters are:
[g|j|J|n|x]refpoint[+jjustify][+odx[/dy]]:position+w:width+p:outer_pen+i:inner_pen+l:labels+d:declination,declination_label+t:intervalsExamples
Addressing #2831.