← 输入框|github.com|刷新
Skip to content

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

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

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.

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.

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
ddale merged commit ac02f83 into matplotlib:master Jun 16, 2011
@richbwood richbwood mentioned this pull request Dec 19, 2012
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