Skip to content

feat: add 'plot.sticky' RC flag to toggle sticky edges#634

Open
Deepak8858 wants to merge 2 commits intoUltraplot:mainfrom
Deepak8858:fix/issue-631-sticky-rc
Open

feat: add 'plot.sticky' RC flag to toggle sticky edges#634
Deepak8858 wants to merge 2 commits intoUltraplot:mainfrom
Deepak8858:fix/issue-631-sticky-rc

Conversation

@Deepak8858
Copy link

Fixes #631

Added a new 'plot.sticky' configuration setting (default True) that allows globally disabling sticky edges for line and area plots via the rc file or rc context.

Deepak Singh and others added 2 commits March 19, 2026 09:34
…lot#631)

Added a new 'plot.sticky' configuration setting (default True) that allows
globally disabling sticky edges for line and area plots via the rc file or
rc context.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a unit smoke test

Fix sticky edges for the input artists using the minimum and maximum of the
input coordinates. This is used to copy `bar` behavior to `area` and `lines`.
"""
if not rc["plot.sticky"]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is the correct place here. This would affect fill, and area plots too. We could add this checker in the line only for now (as I don't see the point for adding it for fills and areas). We may also add it to the plot kwargs to allow to turn it off per subplot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RC flag to disable sticky edges for line plots

2 participants