Skip to content

Figure.fill_between: Add parameter 'no_clip' to not clip curves outside the border#4696

Merged
seisman merged 1 commit into
mainfrom
fill_between/no_clip
Jun 24, 2026
Merged

Figure.fill_between: Add parameter 'no_clip' to not clip curves outside the border#4696
seisman merged 1 commit into
mainfrom
fill_between/no_clip

Conversation

@seisman

@seisman seisman commented Jun 24, 2026

Copy link
Copy Markdown
Member

Example:

import numpy as np
import pygmt
x = np.linspace(0, 2 * np.pi, 200)
fig = pygmt.Figure()
fig.basemap(region=[0, 1 * np.pi, -1.2, 1.2], projection="X10c/4c", frame=True)
fig.fill_between(
    x=x,
    y=np.sin(2 * x),
    y2=np.sin(3 * x),
    fill="lightblue",
    pen="1p,blue",
    fill2="lightred",
    pen2="1p,red",
    no_clip=True,
)
fig.show()
no_clip

Address #4678

@seisman seisman added the enhancement Improving an existing feature label Jun 24, 2026
@seisman seisman added this to the 0.19.0 milestone Jun 24, 2026
@seisman seisman added the needs review This PR has higher priority and needs review. label Jun 24, 2026
@seisman seisman merged commit 24495d4 into main Jun 24, 2026
27 checks passed
@seisman seisman deleted the fill_between/no_clip branch June 24, 2026 14:27
@seisman seisman removed the needs review This PR has higher priority and needs review. label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants