Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plt.close() vs plt.show() #33

Closed
AdamRJensen opened this issue Oct 7, 2024 · 1 comment
Closed

plt.close() vs plt.show() #33

AdamRJensen opened this issue Oct 7, 2024 · 1 comment

Comments

@AdamRJensen
Copy link
Contributor

You shouldn't start a new plot by using plt.close()

If anything you can use plt.show() at the end of a plot which avoids showing the output line (shown in yellow below):

image

Please remove all instances of plt.close() in the documentation.

@trchudley
Copy link
Owner

Thanks Adam. The use of plt.close() throughout is vestigial and habitual from my usual use of %matplotlib widget outside of training notebooks. Unfortunately necessary for my usual use cases until matplotlib/ipympl#4 gets resolved! All fixed up now.

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

No branches or pull requests

2 participants