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
cfl() doesn't clear gcf()._suptitle #2525
Comments
Sounds reasonable. Do you fancy trying to submit a PR with the necessary change and a test to ensure that this remains fixed? Thanks! |
Likewise, even without the clf(), you have an issue if you call fig.suptitle() >2 times
The larger issue is that each time plt.suptitle is called it creates an endless amount of text artists as you can see with the following sample code
You will see that 4 text artists are added with fig._suptitle only point to one of them. |
…ixes a bug where suptitle endlessly adds text artists to the figure
Closed by #2711 |
Issue
suptitle doesn't replace the text if the figure is cleared with clf.
Work:
Doesn't work:
Solution?
add
self._suptitle = None
to figure.clf()Thanks!!!
/Bror Jonsson
The text was updated successfully, but these errors were encountered: