@@ -1976,27 +1976,22 @@ def init_layoutgrid(self):
1976
1976
parent_pos = (self ._subplotspec .rowspan ,
1977
1977
self ._subplotspec .colspan ))
1978
1978
1979
- def get_axes (self ):
1979
+ @property
1980
+ def axes (self ):
1980
1981
"""
1981
- Return a list of Axes in the SubFigure. You can access and modify the
1982
- Axes in the Figure through this list.
1982
+ List of Axes in the SubFigure. You can access and modify the Axes
1983
+ in the SubFigure through this list.
1983
1984
1984
1985
Do not modify the list itself. Instead, use `~.SubFigure.add_axes`,
1985
1986
`~.SubFigure.add_subplot` or `~.SubFigure.delaxes` to add or remove an
1986
1987
Axes.
1987
1988
1988
- Note: This is equivalent to the property `~.SubFigure.axes`.
1989
+ Note: The `.SubFigure.axes` property and `~.SubFigure.get_axes` method
1990
+ are equivalent.
1989
1991
"""
1990
1992
return self ._localaxes .as_list ()
1991
1993
1992
- axes = property (get_axes , doc = """
1993
- List of Axes in the SubFigure. You can access and modify the Axes
1994
- in the SubFigure through this list.
1995
-
1996
- Do not modify the list itself. Instead, use `~.SubFigure.add_axes`,
1997
- `~.SubFigure.add_subplot` or `~.SubFigure.delaxes` to add or remove an
1998
- Axes.
1999
- """ )
1994
+ get_axes = axes .fget
2000
1995
2001
1996
def draw (self , renderer ):
2002
1997
# docstring inherited
@@ -2211,25 +2206,21 @@ def show(self, warn=True):
2211
2206
except NonGuiException as exc :
2212
2207
_api .warn_external (str (exc ))
2213
2208
2214
- def get_axes (self ):
2209
+ @property
2210
+ def axes (self ):
2215
2211
"""
2216
- Return a list of Axes in the Figure. You can access and modify the
2217
- Axes in the Figure through this list.
2212
+ List of Axes in the Figure. You can access and modify the Axes in the
2213
+ Figure through this list.
2218
2214
2219
2215
Do not modify the list itself. Instead, use `~Figure.add_axes`,
2220
2216
`~.Figure.add_subplot` or `~.Figure.delaxes` to add or remove an Axes.
2221
2217
2222
- Note: This is equivalent to the property `~.Figure.axes`.
2218
+ Note: The `.Figure.axes` property and `~.Figure.get_axes` method are
2219
+ equivalent.
2223
2220
"""
2224
2221
return self ._axstack .as_list ()
2225
2222
2226
- axes = property (get_axes , doc = """
2227
- List of Axes in the Figure. You can access and modify the Axes in the
2228
- Figure through this list.
2229
-
2230
- Do not modify the list itself. Instead, use "`~Figure.add_axes`,
2231
- `~.Figure.add_subplot` or `~.Figure.delaxes` to add or remove an Axes.
2232
- """ )
2223
+ get_axes = axes .fget
2233
2224
2234
2225
def _get_dpi (self ):
2235
2226
return self ._dpi
0 commit comments