-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
axes limits revert to automatic on sharing axes? #10062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Its possible that the logic in matplotlib/lib/matplotlib/axes/_base.py Lines 1004 to 1012 in fb2c15b
|
It is not sharing axes that breaks the datalim it is the contourplot. Can check with Anyway in def contour you have |
I believe that |
closed via #10798 |
@shaynair Thank-you for addressing this |
Sharing axes undoes manual limits, but they can be restored afterwards.
The script below initially has manual limits on the first (and only) subplot. After uncommenting just the lines below 1, the manual limits are lost (on both subplots). After uncommenting the lines below 2, they are restored (on both subplots). It may be by design, but is a gotcha for users because usually (without axis sharing) the limits are not sensitive to where they are set (e.g. before or after calling
contour
). The sensitivity to placement with shared axes does not seem to be easily found in the documentation.matplotlib 2.0.0 via conda
The text was updated successfully, but these errors were encountered: