FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clarify SecondaryAxes limit behavior via documentation by Chirag3841 · Pull Request #31439 · matplotlib/matplotlib · GitHub

Repository navigation

Clarify SecondaryAxes limit behavior via documentation - #31439

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
Chirag3841:fix-secondary-axis-doc
Apr 2, 2026
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
Chirag3841:fix-secondary-axis-doc

Conversation

Chirag3841 commented Apr 2, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

PR summary

This PR updates the documentation to clarify how limits behave for SecondaryAxes. It might just help to mention in the docs that setting its limits (like set_xlim/set_ylim) has no effect, since the current silent behaviour can be a bit confusing.
Following the discussion in the issue, this change adds a note in the Returns section to make this behaviour explicit.

AI Disclosure

PR checklist

Copy link
Copy Markdown
Contributor Author

@timhoffm Documentation added as per the requirement and valuable suggestion given by you.

timhoffm added this to the v3.11.0 milestone Apr 2, 2026
timhoffm merged commit 06a13df into matplotlib:main Apr 2, 2026
35 of 38 checks passed

timhoffm commented Apr 2, 2026

Copy link
Copy Markdown
Member

Thanks @Chirag3841 !

Chirag3841 deleted the fix-secondary-axis-doc branch April 2, 2026 11:40
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: [Bug]: secondary_xaxes().set_xlim/xbound should warn or raise that it is ineffective

2 participants


Back | FazBrowse Home | New Git URL