@@ -178,7 +178,7 @@ class ConstrainedLayoutEngine(LayoutEngine):
178
178
_colorbar_gridspec = False
179
179
180
180
def __init__ (self , * , h_pad = None , w_pad = None ,
181
- hspace = None , wspace = None , rect = [ 0 , 0 , 1 , 1 ] ,
181
+ hspace = None , wspace = None , rect = ( 0 , 0 , 1 , 1 ) ,
182
182
** kwargs ):
183
183
"""
184
184
Initialize ``constrained_layout`` settings.
@@ -197,7 +197,7 @@ def __init__(self, *, h_pad=None, w_pad=None,
197
197
If h/wspace < h/w_pad, then the pads are used instead.
198
198
Default to :rc:`figure.constrained_layout.hspace` and
199
199
:rc:`figure.constrained_layout.wspace`.
200
- rect : [l, b, w, h]
200
+ rect : tuple of 4 floats
201
201
Rectangle in figure coordinates to perform constrained layout in
202
202
[left, bottom, width, height], each from 0-1.
203
203
"""
@@ -207,7 +207,7 @@ def __init__(self, *, h_pad=None, w_pad=None,
207
207
h_pad = mpl .rcParams ['figure.constrained_layout.h_pad' ],
208
208
wspace = mpl .rcParams ['figure.constrained_layout.wspace' ],
209
209
hspace = mpl .rcParams ['figure.constrained_layout.hspace' ],
210
- rect = [ 0 , 0 , 1 , 1 ] )
210
+ rect = ( 0 , 0 , 1 , 1 ) )
211
211
# set anything that was passed in (None will be ignored):
212
212
self .set (w_pad = w_pad , h_pad = h_pad , wspace = wspace , hspace = hspace ,
213
213
rect = rect )
0 commit comments