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

Patched pyplot.subplots for squeeze==False by jseabold · Pull Request #133 · matplotlib/matplotlib · GitHub

Repository navigation

Patched pyplot.subplots for squeeze==False - #133

Merged
ddale merged 2 commits into
matplotlib:masterfrom
jseabold:fix-subplot-squeeze
Jun 16, 2011
Merged

ddale merged 2 commits into
matplotlib:masterfrom
jseabold:fix-subplot-squeeze

Conversation

jseabold commented Jun 2, 2011

Copy link
Copy Markdown
Contributor

If squeeze == False, ret was never defined. I just copied over the code from 1.0.1 release.

jseabold commented Jun 6, 2011

Copy link
Copy Markdown
Contributor Author

For completeness this looks like the commit that introduced the bug.

d09329a

Comment thread lib/matplotlib/pyplot.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This last line will now never get called so should be removed for cleanliness sake.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It gets called if squeeze == True. The problem was that if squeeze==False, ret never gets defined. I changed 804 so that it's clearer and removed a blank line.

ddale added a commit that referenced this pull request Jun 16, 2011
Patched pyplot.subplots for squeeze==False
ddale merged commit ac02f83 into matplotlib:master Jun 16, 2011
richbwood mentioned this pull request Dec 19, 2012
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL