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

Skip to content

Commit 0cd4d7e

Browse files
committed
Comments (mostly) addressed
1 parent e97bd2a commit 0cd4d7e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/matplotlib/figure.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,27 +1985,27 @@ class SubFigure(FigureBase):
19851985
fig = plt.figure()
19861986
sfigs = fig.subfigures(1, 2)
19871987
axsL = sfigs[0].subplots(1, 2)
1988-
axsR = sfigs[0].subplots(2, 1)
1988+
axsR = sfigs[1].subplots(2, 1)
19891989

19901990
See :doc:`/gallery/subplots_axes_and_figures/subfigures`
19911991
"""
19921992
1993-
def __init__(self, subplotspec, parent, *,
1993+
def __init__(self, parent, subplotspec, *,
19941994
facecolor=None,
19951995
edgecolor=None,
19961996
linewidth=0.0,
19971997
frameon=None):
19981998
"""
19991999
Parameters
20002000
----------
2001-
subplotspec : `.gridspec.SubplotSpec`
2002-
defines the region in a parent gridspec where the subfigure will
2003-
be placed
2004-
20052001
parent : `.figure.Figure` or `.figure.SubFigure`
20062002
Figure or subfigure that contains the SubFigure. SubFigures
20072003
can be nested.
20082004

2005+
subplotspec : `.gridspec.SubplotSpec`
2006+
defines the region in a parent gridspec where the subfigure will
2007+
be placed
2008+
20092009
facecolor : default: :rc:`figure.facecolor`
20102010
The figure patch facecolor.
20112011

@@ -2101,9 +2101,6 @@ def _redo_transform_rel_fig(self, margins=(0, 0, 0, 0), bbox=None):
21012101
self.bbox_relative.p0 = (x0, y0)
21022102
self.bbox_relative.p1 = (x0 + widthf, y0 + heightf)
21032103
2104-
def get_size_inches(self):
2105-
return self._parent.get_size_inches()
2106-
21072104
def get_constrained_layout(self):
21082105
return self._parent.get_constrained_layout()
21092106

0 commit comments

Comments
 (0)