DOC/gallery example "Fill area between curves": Add example for non-co-registered curves#4697
Draft
yvonnefroehlich wants to merge 20 commits into
Draft
DOC/gallery example "Fill area between curves": Add example for non-co-registered curves#4697yvonnefroehlich wants to merge 20 commits into
yvonnefroehlich wants to merge 20 commits into
Conversation
Member
|
Off-topic: It's likely gallery example https://www.pygmt.org/dev/gallery/images/cross_section.html can be simplified with the |
Member
|
What about combining the first and second examples into one example? So we have three examples showing how the y2 curves can be specified by
|
seisman
reviewed
Jun 25, 2026
| # Partly Segmentation fault problem (at least on Windows) | ||
| # x3 = np.sort((np.random.rand(20) - 0.5) * 20) | ||
| # Line limit still applies | ||
| x3 = np.array([-10, -8.21, -7.4, -6.63, -5.89, -4.18, -3.45, -2.69, -1.96, 0.26, 1.61, 2.23, 3.49, 4.0, 5.28, 6.79, 7.12, 8.25, 9.13, 10]) # noqa: E501 |
Member
There was a problem hiding this comment.
Shorter line length
Suggested change
| x3 = np.array([-10, -8.21, -7.4, -6.63, -5.89, -4.18, -3.45, -2.69, -1.96, 0.26, 1.61, 2.23, 3.49, 4.0, 5.28, 6.79, 7.12, 8.25, 9.13, 10]) # noqa: E501 | |
| x3 = np.array([-10, -8.2, -7.4, -6.6, -5.8, -4.1, -3.4, -2.6, -1.9, 0.2, 1.6, 2.2, 3.4, 4.0, 5.2, 6.7, 7.1, 8.2, 9.1, 10]) # noqa: E501 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
Extend the gallery example for
Figure.fill_betweento show the usage of non-co-registered curves.Related to #4692 and #4698.
Preview: https://pygmt-dev--4697.org.readthedocs.build/en/4697/gallery/lines/fill_areas_between_curves.html
Guidelines
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