Skip to content

subplots() shared scale is off #2492

Closed
Closed

Description

@ohadle

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

Activity

  1. numpand commented on Dec 17, 2013

    @numpand

    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()
  2. tacaswell commented on Jan 22, 2014

    @tacaswell
    Member

    Related to #1325

  3. added this to the v1.4.0 milestone on Mar 3, 2014
  4. modified the milestones: v1.3.x, v1.4.0, v1.4.x on Jun 4, 2014
  5. tacaswell commented on Jun 4, 2014

    @tacaswell
    Member

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

  6. tacaswell commented on Jun 6, 2014

    @tacaswell
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions