Skip to content

Gallery example "Clipping grid values": Add annotations to frames - #2709

Merged
seisman merged 2 commits into
mainfrom
add-Baf-gallery-grdclip
Oct 7, 2023
Merged

seisman merged 2 commits into
mainfrom
add-Baf-gallery-grdclip

Conversation

@yvonnefroehlich

Copy link
Copy Markdown
Member

Description of proposed changes

This PR aims to add annotations to the frames of the maps in the gallery example Clipping grid values:

without annotations with annotations
grdclip_WITHOUT_Baf grdclip_WITH_Baf

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Oct 2, 2023
@yvonnefroehlich yvonnefroehlich added this to the 0.11.0 milestone Oct 2, 2023
@yvonnefroehlich

Copy link
Copy Markdown
Member Author

/format

@yvonnefroehlich yvonnefroehlich self-assigned this Oct 2, 2023
@yvonnefroehlich

Copy link
Copy Markdown
Member Author

There seem to be differences in the Style Checks, especially regarding pylint:

Run make lint
pylint pygmt doc/conf.py
************* Module conf
doc/conf.py:1:0: R0401: Cyclic import (pygmt -> pygmt.src -> pygmt.src.timestamp) (cyclic-import)
doc/conf.py:1:0: R0401: Cyclic import (pygmt -> pygmt.src -> pygmt.src.ternary) (cyclic-import)
doc/conf.py:1:0: R0401: Cyclic import (pygmt -> pygmt.figure -> pygmt.src.timestamp) (cyclic-import)
doc/conf.py:1:0: R0401: Cyclic import (pygmt -> pygmt.figure -> pygmt.src.ternary) (cyclic-import)

-----------------------------------
Your code has been rated at 9.99/10

make: *** [Makefile:79: lint] Error 8
Error: Process completed with exit code 2.

@seisman

seisman commented Oct 3, 2023

Copy link
Copy Markdown
Member

@seisman

seisman commented Oct 3, 2023

Copy link
Copy Markdown
Member

Why make the changes? The old figure looks good to me.

@yvonnefroehlich

Copy link
Copy Markdown
Member Author

Why make the changes? The old figure looks good to me.

I feel it would be better to have map frames with annotations.

@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Oct 6, 2023
@seisman
seisman merged commit 18034f4 into main Oct 7, 2023
@seisman
seisman deleted the add-Baf-gallery-grdclip branch October 7, 2023 03:36
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants