-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
subplots() shared scale is off #2492
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
Labels
Milestone
Comments
I've observed the same issue. Here is a small example to reproduce it: # The following code illustrates a bug in the pyplot.subplots function of version 1.3 of matplotlib
import matplotlib.pyplot as plt
# The following works as expected
fig1, axes1 = plt.subplots(1, 2, sharex=True)
axes1[0].plot([1,2,3], [4,5,6])
axes1[1].plot([1,2,3], [11, 12, 13])
# The following does not work as expected
fig2, axes2 = plt.subplots(1, 3, sharey=True)
axes2[0].plot([1,2,3], [4,5,6])
axes2[1].plot([1,2,3], [11, 12, 13])
plt.show() |
Related to #1325 |
Punting to 1.4.x as this can be 'fixed' by manually specifying the axes limits. |
This appears to be fixed, see #3118. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As long as all the plots are filled,

subplots(n, m, sharex=True, sharey=True)
works fine.When some plots are left blank, though, the shared axis scales according to the empty plots, making it impossible to see the filled ones.

The text was updated successfully, but these errors were encountered: