pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/pull/31439

/global-0bd78641c0a1f3e0.css" /> Clarify SecondaryAxes limit behavior via documentation by Chirag3841 · Pull Request #31439 · matplotlib/matplotlib · GitHub
Skip to content

Clarify SecondaryAxes limit behavior via documentation#31439

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

Clarify SecondaryAxes limit behavior via documentation#31439
timhoffm merged 1 commit intomatplotlib:mainfrom
Chirag3841:fix-secondary-axis-doc

Conversation

@Chirag3841
Copy link
Copy Markdown
Contributor

@Chirag3841 Chirag3841 commented Apr 2, 2026

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

@Chirag3841
Copy link
Copy Markdown
Contributor Author

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

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

timhoffm commented Apr 2, 2026

Thanks @Chirag3841 !

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy