Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Use explicit kwarg for plt.show()#11170
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lib/matplotlib/pyplot.py Outdated
| """ | ||
| global_show | ||
| return_show(*args,**kw) | ||
| return_show(block=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I guess you meanreturn _show(block=block) here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
🤦♂️
ImportanceOfBeingErnest commentedMay 4, 2018
I do think it's a good idea. Maybe one could even check for |
ImportanceOfBeingErnest commentedMay 5, 2018
Apparently there is a problem with the web backend which doesn't take any arguments. |
b8806d5 tod4d80e5Compare| @staticmethod | ||
| defshow(): | ||
| defshow(block=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I thought we fixed this already....
tacaswell commentedMay 7, 2018
I am 👎 on changing the default value. If the user passed I am very 👍 on@ImportanceOfBeingErnest 's suggestion of giving a good warning in the common incorrect use of passing figures or axes to |
tacaswell left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👎 on changing the default.
If the user passesblock=True we need to block!
dstansby commentedMay 7, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Is there currently a difference between |
ImportanceOfBeingErnest commentedMay 8, 2018
Concerning |
dstansby commentedJun 27, 2018
Going to close this since I can't remember what's going on. |
I feel like this might be a Bad Idea, but can't work out why - maybe others will be able to tell me if it is or not! Either way, the doc change is probably welcome.
Will add API notes if/when someone reviews.