DOC: Add gallery example to show usage of map roses#4010
DOC: Add gallery example to show usage of map roses#4010michaelgrund wants to merge 38 commits intomainfrom
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? |
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
|
@michaelgrund @yvonnefroehlich I've opened PR #4025 which adds the |
Great, will wait until #4025 is merged! |
|
@michaelgrund The |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
|
/format |
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
|
/format |
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
| directional roses on maps. Using ``pygmt.Figure.directional_rose()`` | ||
| without any arguments will plot a rose at the bottom left corner, | ||
| but this example will focus on customizing its position and | ||
| apperance. |
There was a problem hiding this comment.
| apperance. | |
| appearance. |
| ===================== | ||
|
|
||
| The :meth:`pygmt.Figure.directional_rose` method allows to add | ||
| directional roses on maps. Using ``pygmt.Figure.directional_rose()`` |
There was a problem hiding this comment.
| directional roses on maps. Using ``pygmt.Figure.directional_rose()`` | |
| directional roses on maps. Using the method |
| fig.directional_rose( | ||
| width=width, | ||
| labels=True, | ||
| position=Position((20, y0), cstype="mapcoords"), |
There was a problem hiding this comment.
I wonder if we can use plotcoords in the example, so the command can fit on one line, making it much shorter:
fig.directional_rose(width=width, labels=True, position=(1, 1), fancy=True)
|
I feel it would be better if we could find all GMT parameters (e.g., Anyway, we can finish this gallery example first, then implement these parameters and update the gallery example in separate PRs. |
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 formatandmake checkto 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