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

Skip to content

Commit 9a32267

Browse files
ivanovmdboom
authored andcommitted
whats_new: a note about the changed examples
1 parent 376a0b4 commit 9a32267

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

doc/users/whats_new.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ Andrew Dawson added a new keyword argument *extendrect* to
138138
:meth:`~matplotlib.pyplot.colorbar` to optionally make colorbar
139139
extensions rectangular instead of triangular.
140140

141+
Examples now use subplots()
142+
---------------------------
143+
For the sake of brevity and clarity, most of the :ref:`examples
144+
<examples-index>` now use the newer :func:`~matplotlib.pyplot.subplots`
145+
, which creates a figure and one (or multiple) axes object(s) in one
146+
call. The old way involved a call to :func:`~matplotlib.pyplot.figure`,
147+
followed by one (or multiple) :func:`~matplotlib.pyplot.subplot` calls.
148+
141149
Calling subplot() without arguments
142150
-----------------------------------
143151
A call to :func:`~matplotlib.pyplot.subplot` without any arguments now

0 commit comments

Comments
 (0)