Skip to content

Commit 548fdcb

Browse files
authored
Merge pull request #28849 from QuLogic/stable-subfigure
DOC: Mark subfigures as no longer provisional
2 parents fe6389f + 33fd5b1 commit 548fdcb

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

doc/users/next_whats_new/subfigures_change_order.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Subfigures no longer provisional
2+
--------------------------------
3+
4+
The API on `.Figure.subfigures` and `.SubFigure` are now considered stable.
5+
6+
17
Subfigures are now added in row-major order
28
-------------------------------------------
39

galleries/examples/subplots_axes_and_figures/subfigures.py

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
`matplotlib.figure.Figure.subfigures` to make an array of subfigures. Note
1414
that subfigures can also have their own child subfigures.
1515
16-
.. note::
17-
The *subfigure* concept is new in v3.4, and the API is still provisional.
18-
1916
"""
2017
import matplotlib.pyplot as plt
2118
import numpy as np

lib/matplotlib/figure.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
Many methods are implemented in `FigureBase`.
77
88
`SubFigure`
9-
A logical figure inside a figure, usually added to a figure (or parent
10-
`SubFigure`) with `Figure.add_subfigure` or `Figure.subfigures` methods
11-
(provisional API v3.4).
9+
A logical figure inside a figure, usually added to a figure (or parent `SubFigure`)
10+
with `Figure.add_subfigure` or `Figure.subfigures` methods.
1211
1312
Figures are typically created using pyplot methods `~.pyplot.figure`,
1413
`~.pyplot.subplots`, and `~.pyplot.subplot_mosaic`.
@@ -1608,9 +1607,6 @@ def subfigures(self, nrows=1, ncols=1, squeeze=True,
16081607
the same as a figure, but cannot print itself.
16091608
See :doc:`/gallery/subplots_axes_and_figures/subfigures`.
16101609
1611-
.. note::
1612-
The *subfigure* concept is new in v3.4, and the API is still provisional.
1613-
16141610
.. versionchanged:: 3.10
16151611
subfigures are now added in row-major order.
16161612
@@ -2229,9 +2225,6 @@ class SubFigure(FigureBase):
22292225
axsR = sfigs[1].subplots(2, 1)
22302226
22312227
See :doc:`/gallery/subplots_axes_and_figures/subfigures`
2232-
2233-
.. note::
2234-
The *subfigure* concept is new in v3.4, and the API is still provisional.
22352228
"""
22362229

22372230
def __init__(self, parent, subplotspec, *,

0 commit comments

Comments
 (0)