-
Notifications
You must be signed in to change notification settings - Fork 235
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? |
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: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
|
/format |
|
/format |
yvonnefroehlich
left a comment
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.
Overall the comments can be rewrapped to use the maximum line length.
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: Dongdong Tian <seisman.info@gmail.com>
| y1 = 0 | ||
| width = "1.5c" | ||
|
|
||
| fig.basemap(region=[-5, 80, -10, 32], projection="M10c", frame=True) |
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.
Perhaps we should have an example like Figure.magnetic_rose() without any arguments? It's the simplest way to use this method.
| The :meth:`pygmt.Figure.directional_rose` method allows to add | ||
| directional roses on maps when using :meth:`pygmt.Figure.basemap` | ||
| or :meth:`pygmt.Figure.coast`. This example shows how such a map |
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.
Do not mention basemap/coast.
| The :meth:`pygmt.Figure.directional_rose` method allows to add | |
| directional roses on maps when using :meth:`pygmt.Figure.basemap` | |
| or :meth:`pygmt.Figure.coast`. This example shows how such a map | |
| The :meth:`pygmt.Figure.directional_rose` method allows to add | |
| directional roses on maps. This example shows how such a map |
| # Fancy, 1.5 cm wide rose of level 2 and labels indicating the different | ||
| # directions |
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.
| # Fancy, 1.5 cm wide rose of level 2 and labels indicating the different | |
| # directions | |
| # Fancy, 1.5 cm wide rose of level 2 and labels indicating the different directions |
or maybe just something similar to
| # Fancy, 1.5 cm wide rose of level 2 and labels indicating the different | |
| # directions | |
| # Same rose but now of level 2 |
| # Fancy, 1.5 cm wide rose of level 3 and labels indicating the different | ||
| # directions |
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.
| # Fancy, 1.5 cm wide rose of level 3 and labels indicating the different | |
| # directions | |
| # Fancy, 1.5 cm wide rose of level 3 and labels indicating the different directions |
or maybe just something similar to
| # Fancy, 1.5 cm wide rose of level 3 and labels indicating the different | |
| # directions | |
| # Same rose but now of level 3 |
| # Fancy, 1.5 cm wide rose of level 2 with two labels indicating the West and | ||
| # East directions. Colors of the rose and labels are defined via | ||
| # MAP_DEFAULT_PEN, MAP_TICK_PEN_PRIMARY and FONT_TITLE, respectively |
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.
As these defaults were explained in the example before and are mentioned in the introduction text, I feel we do not need to repeat it for the following examples.
| # Fancy, 1.5 cm wide rose of level 2 with two labels indicating the West and | |
| # East directions. Colors of the rose and labels are defined via | |
| # MAP_DEFAULT_PEN, MAP_TICK_PEN_PRIMARY and FONT_TITLE, respectively | |
| # Fancy, 1.5 cm wide rose of level 2 with two labels indicating the West and | |
| # East directions |
| # Fancy, 1.5 cm wide rose of level 3 with two labels indicating the North and | ||
| # South directions. Colors of the rose and labels are defined via | ||
| # MAP_DEFAULT_PEN, MAP_TICK_PEN_PRIMARY and FONT_TITLE, respectively |
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.
| # Fancy, 1.5 cm wide rose of level 3 with two labels indicating the North and | |
| # South directions. Colors of the rose and labels are defined via | |
| # MAP_DEFAULT_PEN, MAP_TICK_PEN_PRIMARY and FONT_TITLE, respectively | |
| # Fancy, 1.5 cm wide rose of level 3 with two labels indicating the North and | |
| # South directions |
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