-
Notifications
You must be signed in to change notification settings - Fork 229
DOC: Add gallery example to show usage of map roses #4010
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
base: main
Are you sure you want to change the base?
Conversation
Cool - will look at the plots in detail later on. But just want to mention that there is an issue suggesting to implemente a high-level methods for plotting a directional rose etc. at #2831 (similar to |
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Instead of plotting eight roses in eight subplots, maybe it's better to plot eight roses in a single basemap? |
independent) code. Choose from vertical **T**\(op), **M**\(iddle), or | ||
**B**\(ottom) and horizontal **L**\(eft), **C**\(entre), or **R**\(ight). | ||
|
||
- label: **+l**[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, |
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.
- label: **+l**[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, | |
- label: **+l**\[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, |
- width: **+w**: Set the width of the rose in plot coordinates (append | ||
**i** (inch), **cm** (centimeters), or **p** (points). | ||
|
||
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the |
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.
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the | |
- fanciness: **+f** \[level]: Get a “fancy” rose, and optionally specify the |
- width: **+w**: Set the width of the rose in plot coordinates (append | ||
**i** (inch), **cm** (centimeters), or **p** (points). | ||
|
||
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the |
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.
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the | |
- fanciness: **+f**[level]: Get a "fancy" rose, and optionally specify the |
level of fanciness. Level 1 draws the two principal E-W, N-S orientations, | ||
2 adds the two intermediate NW-SE and NE-SW orientations, while 3 adds | ||
the eight minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW | ||
[default is 1]. |
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.
[default is 1]. | |
[Default is 1]. |
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the | ||
level of fanciness. Level 1 draws the two principal E-W, N-S orientations, | ||
2 adds the two intermediate NW-SE and NE-SW orientations, while 3 adds | ||
the eight minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW | ||
[default is 1]. |
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.
What's about having a list here?
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the | |
level of fanciness. Level 1 draws the two principal E-W, N-S orientations, | |
2 adds the two intermediate NW-SE and NE-SW orientations, while 3 adds | |
the eight minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW | |
[default is 1]. | |
- fanciness: **+f**[level]: Get a "fancy" rose, and optionally specify the | |
level of fanciness. | |
- ``"1"``: Draws the two principal E-W, N-S orientations`. | |
- ``"2"``: Adds the two intermediate NW-SE and NE-SW orientations. | |
- ``"3"``: Adds the four minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW. | |
[Default is ``"1"``]. |
- fanciness: **+f**[level]: Get a “fancy” rose, and optionally specify the | ||
level of fanciness. Level 1 draws the two principal E-W, N-S orientations, | ||
2 adds the two intermediate NW-SE and NE-SW orientations, while 3 adds | ||
the eight minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW |
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.
Hm, I think to be consistent with "two pricipal orientations", it should be "four minor orientations".
the eight minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW | |
the four minor orientations WNW-ESE, NNW-SSE, NNE-SSW, and ENE-WSW |
- label: **+l**[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, | ||
append your own four comma-separated strings to override the default. |
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.
- label: **+l**[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, | |
append your own four comma-separated strings to override the default. | |
- label: **+l**\[w,e,s,n]: Label the cardinal points W,E,S,N. Optionally, | |
append your own four labels as comma-separated strings to override the default. |
Description of proposed changes
This PR adds a gallery example to show the usage of map roses.
Preview:
https://pygmt-dev--4010.org.readthedocs.build/en/4010/gallery/embellishments/map_roses.html
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash command is:
/format
: automatically format and lint the code