@@ -1985,27 +1985,27 @@ class SubFigure(FigureBase):
1985
1985
fig = plt .figure ()
1986
1986
sfigs = fig .subfigures (1 , 2 )
1987
1987
axsL = sfigs [0 ].subplots (1 , 2 )
1988
- axsR = sfigs [0 ].subplots (2 , 1 )
1988
+ axsR = sfigs [1 ].subplots (2 , 1 )
1989
1989
1990
1990
See :doc :`/gallery/subplots_axes_and_figures/subfigures`
1991
1991
"""
1992
1992
1993
- def __init__(self, subplotspec, parent , *,
1993
+ def __init__(self, parent, subplotspec , *,
1994
1994
facecolor=None,
1995
1995
edgecolor=None,
1996
1996
linewidth=0.0,
1997
1997
frameon=None):
1998
1998
"""
1999
1999
Parameters
2000
2000
- - - - - - - - - -
2001
- subplotspec : `.gridspec.SubplotSpec`
2002
- defines the region in a parent gridspec where the subfigure will
2003
- be placed
2004
-
2005
2001
parent : `.figure.Figure` or `.figure.SubFigure`
2006
2002
Figure or subfigure that contains the SubFigure . SubFigures
2007
2003
can be nested .
2008
2004
2005
+ subplotspec : `.gridspec.SubplotSpec`
2006
+ defines the region in a parent gridspec where the subfigure will
2007
+ be placed
2008
+
2009
2009
facecolor : default : :rc :`figure.facecolor`
2010
2010
The figure patch facecolor .
2011
2011
@@ -2101,9 +2101,6 @@ def _redo_transform_rel_fig(self, margins=(0, 0, 0, 0), bbox=None):
2101
2101
self.bbox_relative.p0 = (x0, y0)
2102
2102
self.bbox_relative.p1 = (x0 + widthf, y0 + heightf)
2103
2103
2104
- def get_size_inches(self):
2105
- return self._parent.get_size_inches()
2106
-
2107
2104
def get_constrained_layout(self):
2108
2105
return self._parent.get_constrained_layout()
2109
2106
0 commit comments