FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bug in tight_layout · Issue #11737 · matplotlib/matplotlib · GitHub

Repository navigation

Bug in tight_layout #11737

Closed
Closed

Description

I just found a critical bug in tight_layout in master (unless something is wrong with my installation...).

fig, ax=plt.subplots()
fig.set_tight_layout(True)
plt.show()

The axes get into a black hole in the middle of the figure if I try to zoom.

master
python 3.5, 3.6
windows 10

Activity

  1. fredrik-1 commented on Jul 22, 2018

    ContributorAuthor

    It seems that the new tests for correct subplotparams in tight_layoutfor some reason don't work in the use case above. I am looking into it.

  2. fredrik-1 commented on Jul 22, 2018

    ContributorAuthor

    Some more information. The left, right etc values in the tight_layout module became incorrect. Those values get send to Subplotparams.update where they are silently changed to the old values. The raise ValueError is not working, probably due to a try somewhere.

    So zooming seems to work without the new tests in the tight_layout module but it actually doesn't because the old suplotparameters are just used once again.

  3. fredrik-1 commented on Jul 22, 2018

    ContributorAuthor

    #11739 might fix the bug.

  4. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Jul 23, 2018
  5. added this to the v3.0 milestone on Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL