-
Notifications
You must be signed in to change notification settings - Fork 234
Add Figure.magnetic_rose to plot a magnetic rose on map #4051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seisman
wants to merge
3
commits into
main
Choose a base branch
from
feature/magnetic_rose
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+142
−0
Conversation
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
6 tasks
9 tasks
7667e5c to
a525760
Compare
a525760 to
be5f819
Compare
michaelgrund
approved these changes
Dec 17, 2025
Comment on lines
+46
to
+47
| star is plotted instead of the north label. If set to ``True``, use the default | ||
| labels ``["W", "E", "S", "N"]``. |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| star is plotted instead of the north label. If set to ``True``, use the default | |
| labels ``["W", "E", "S", "N"]``. | |
| star is plotted instead of the north label. If set to ``True``, the default | |
| labels ``["W", "E", "S", "N"]`` are used. |
| **declination**. To bypass the label, set to ``"-"``. | ||
| intervals | ||
| Specify the annotation and tick intervals for the geographic and magnetic | ||
| directions. It can be a seqeunce of three or six values. If three values are |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| directions. It can be a seqeunce of three or six values. If three values are | |
| directions. It can be a sequence of three or six values. If three values are |
Member
Author
|
@yvonnefroehlich Please review #4014 first. I'll make further changes to this PR when PR #4014 is finalized. |
27 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.