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

Skip to content

Backport PR #25954 on branch v3.7.x (Add note that subfigure is still provisional to docstring) #26001

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/subplots_axes_and_figures/subfigures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
that subfigures can also have their own child subfigures.

.. note::
``subfigure`` is new in v3.4, and the API is still provisional.
The *subfigure* concept is new in v3.4, and the API is still provisional.

"""
import matplotlib.pyplot as plt
Expand Down
6 changes: 6 additions & 0 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,9 @@ def subfigures(self, nrows=1, ncols=1, squeeze=True,
the same as a figure, but cannot print itself.
See :doc:`/gallery/subplots_axes_and_figures/subfigures`.

.. note::
The *subfigure* concept is new in v3.4, and the API is still provisional.

Parameters
----------
nrows, ncols : int, default: 1
Expand Down Expand Up @@ -2140,6 +2143,9 @@ class SubFigure(FigureBase):
axsR = sfigs[1].subplots(2, 1)

See :doc:`/gallery/subplots_axes_and_figures/subfigures`

.. note::
The *subfigure* concept is new in v3.4, and the API is still provisional.
"""
callbacks = _api.deprecated(
"3.6", alternative=("the 'resize_event' signal in "
Expand Down