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

Skip to content

Commit e980de6

Browse files
committed
DOC: add close-figs section to whatsnew doc
Add small section on `close-figs` argument for plot directive.
1 parent d3beb52 commit e980de6

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
@@ -66,6 +66,14 @@ New backend selection
6666
The environment variable :envvar:`MPLBACKEND` can now be used to set the
6767
matplotlib backend.
6868

69+
New ``close-figs`` argument for plot directive
70+
----------------------------------------------
71+
72+
Matplotlib has a sphinx extension ``plot_directive`` that creates plots for
73+
inclusion in sphinx documents. Matplotlib 1.5 adds a new option to the plot
74+
directive - ``close-figs`` - that closes any previous figure windows before
75+
creating the plots. This can help avoid some surprising duplicates of plots
76+
when using ``plot_directive``.
6977

7078
.. _whats-new-1-4:
7179

0 commit comments

Comments
 (0)