8000 DOC: whats_new: plt.subplot without args behaviour · matplotlib/matplotlib@31e0a10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31e0a10

Browse files
committed
DOC: whats_new: plt.subplot without args behaviour
1 parent bf83c16 commit 31e0a10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/users/whats_new.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ Andrew Dawson added a new keyword argument *extendrect* to
2626
:meth:`~matplotlib.pyplot.colorbar` to optionally make colorbar
2727
extensions rectangular instead of triangular.
2828

29+
Calling subplot() without arguments
30+
-----------------------------------
31+
A call to :func:`~matplotlib.pyplot.subplot` without any arguments now
32+
acts the same as `subplot(111)` or `subplot(1,1,1)` -- it creates one axes for
33+
the whole figure. This was already the behavior for both
34+
:func:`~matplotlib.pyplot.axes` and :func:`~matplotlib.pyplot.subplots`, and
35+
now this consistency is shared with :func:`~matplotlib.pyplot.subplot`.
2936

3037
.. _whats-new-1-2:
3138

0 commit comments

Comments
 (0)
0