Skip to content

Figure.plot: Remove "fill_between" parameter in favour of a standalone high-level method - #4527

Merged
seisman merged 7 commits into
mainfrom
rename-to-between_fill
Jun 20, 2026
Merged

seisman merged 7 commits into
mainfrom
rename-to-between_fill

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Apr 10, 2026 •

Copy link
Copy Markdown
Member

Description of proposed changes

Remove the fill_between parameter added in PR #3169.
-M of plot is implemented as a standalone high-level method in PR #4679.
Do not merge before #4679 is merged.

Guidelines

Slash Commands

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

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.19.0 milestone Apr 10, 2026
@yvonnefroehlich yvonnefroehlich self-assigned this Apr 10, 2026
@yvonnefroehlich yvonnefroehlich added the enhancement Improving an existing feature label Apr 10, 2026
@yvonnefroehlich
yvonnefroehlich marked this pull request as draft April 14, 2026 08:46
@yvonnefroehlich

Copy link
Copy Markdown
Member Author

In PR #3169, fill_between was added as an alias for -M of Figure.plot. This is consistent with the method used by matplotlib (https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.fill_between.html). However, to be consistent with other parameter names, it should be between_fill, e.g., positive_fill and negative_fill of Figure.wiggle. See also #3169 (comment). @GenericMappingTools/pygmt-maintainers What do people prefer:

  • 🎉 Keep fill_between
  • 🚀 Change to between_fill

@seisman

seisman commented Apr 14, 2026

Copy link
Copy Markdown
Member

One thing to note is that in parameters such as positive_fill and negative_fill, fill is a noun, whereas in fill_between, it is more like a verb.

@yvonnefroehlich yvonnefroehlich added the discussions Need more discussion before taking further actions label Apr 18, 2026
@yvonnefroehlich

Copy link
Copy Markdown
Member Author

Ping @weiji14 and @michaelgrund for your vote here.

@seisman seisman removed this from the 0.19.0 milestone May 23, 2026
@yvonnefroehlich

Copy link
Copy Markdown
Member Author

I think we should decide this before making the release of v0.19.0.

@seisman

seisman commented Jun 12, 2026

Copy link
Copy Markdown
Member

Or cwe can remove the fill_between alias which was added in #3169, and then work on Figure.fill_between in v0.19.0 or next release.

@yvonnefroehlich

Copy link
Copy Markdown
Member Author

Or cwe can remove the fill_between alias which was added in #3169, and then work on Figure.fill_between in v0.19.0 or next release.

This would mean we also need to remove the gallery example added in PR #3168 temporarily and add it back after implementing this high-level method.

@seisman

seisman commented Jun 14, 2026

Copy link
Copy Markdown
Member

Or cwe can remove the fill_between alias which was added in #3169, and then work on Figure.fill_between in v0.19.0 or next release.

This would mean we also need to remove the gallery example added in PR #3168 temporarily and add it back after implementing this high-level method.

The Figure.fill_between method is implemented in PR #4679

@seisman

seisman commented Jun 17, 2026

Copy link
Copy Markdown
Member

Let's reuse this PR to remove the fill_between parameter after #4679 is merged.

@seisman seisman reopened this Jun 17, 2026
@yvonnefroehlich yvonnefroehlich changed the title Figure.plot: Rename "fill_between" to "between_fill" (alias for -M) Figure.plot: Remove "fill_between" parameter in favour of a standalone high-level method Jun 17, 2026
@yvonnefroehlich yvonnefroehlich removed discussions Need more discussion before taking further actions enhancement Improving an existing feature labels Jun 17, 2026
@yvonnefroehlich yvonnefroehlich added this to the 0.19.0 milestone Jun 17, 2026
@yvonnefroehlich yvonnefroehlich added skip-changelog Skip adding Pull Request to changelog deprecation Deprecating a feature labels Jun 18, 2026
@seisman
seisman marked this pull request as ready for review June 20, 2026 03:09
@seisman
seisman merged commit db71521 into main Jun 20, 2026
25 of 27 checks passed
@seisman
seisman deleted the rename-to-between_fill branch June 20, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecating a feature skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants