-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix repeated plots in docs #13635
Fix repeated plots in docs #13635
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 12675002826Details
💛 - Coveralls |
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.
Wow, in some ways I'm surprised that this is the default behaviour. I guess I can just about see the purpose if you're showing how a plot builds up in the matplotlib documentation, but for most uses, it seems like close-figs
should be the default.
@Mergifyio backport stable/1.4 |
✅ Backports have been created
|
(cherry picked from commit 8b2f6bd)
@Mergifyio backport stable/1.3 |
✅ Backports have been created
|
(cherry picked from commit 8b2f6bd)
Summary
The use of

:context:
in pages with several plots was causing an accumulation of figures, this PR fixes this issue by adding:context: close-figs
. For example, thegrover_operator
docs before this PR showed:While after the fix there is only one figure per snippet (as expected):
Details and comments