Skip to content
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

subplots() shared scale is off #2492

Closed
ohadle opened this issue Oct 3, 2013 · 4 comments
Closed

subplots() shared scale is off #2492

ohadle opened this issue Oct 3, 2013 · 4 comments

Comments

@ohadle
Copy link

ohadle commented Oct 3, 2013

As long as all the plots are filled, subplots(n, m, sharex=True, sharey=True) works fine.
figure_2

When some plots are left blank, though, the shared axis scales according to the empty plots, making it impossible to see the filled ones.
figure_1

@numpand
Copy link

numpand commented Dec 17, 2013

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()

@tacaswell
Copy link
Member

Related to #1325

@tacaswell tacaswell added this to the v1.4.0 milestone Mar 3, 2014
@tacaswell tacaswell modified the milestones: v1.3.x, v1.4.0, v1.4.x Jun 4, 2014
@tacaswell
Copy link
Member

Punting to 1.4.x as this can be 'fixed' by manually specifying the axes limits.

@tacaswell
Copy link
Member

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
Projects
None yet
Development

No branches or pull requests

4 participants