Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0679520

Browse files
committed
Added What's New entry for :context: reset
1 parent 14a47c4 commit 0679520

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/users/whats_new.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,14 @@ url as a link in output SVGs. This allows one to make clickable text in
241241
saved figures using the url kwarg of the :class:`~matplotlib.text.Text`
242242
class.
243243

244+
Sphinx extensions
245+
-----------------
246+
247+
The ``:context:`` directive in the `~matplotlib.sphinxext.plot_directive`
248+
Sphinx extension can now accept an optional ``reset`` setting, which will
249+
cause the context to be reset. This allows more than one distinct context to
250+
be present in documentation. To enable this option, use ``:context: reset``
251+
instead of ``:context:`` any time you want to reset the context.
244252

245253
.. _whats-new-1-3:
246254

0 commit comments

Comments
 (0)