Skip to content

Commit 08d0b6a

Browse files
committed
FIX
1 parent acae2c4 commit 08d0b6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/layout_engine.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class ConstrainedLayoutEngine(LayoutEngine):
178178
_colorbar_gridspec = False
179179

180180
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),
182182
**kwargs):
183183
"""
184184
Initialize ``constrained_layout`` settings.
@@ -197,7 +197,7 @@ def __init__(self, *, h_pad=None, w_pad=None,
197197
If h/wspace < h/w_pad, then the pads are used instead.
198198
Default to :rc:`figure.constrained_layout.hspace` and
199199
:rc:`figure.constrained_layout.wspace`.
200-
rect : [l, b, w, h]
200+
rect : tuple of 4 floats
201201
Rectangle in figure coordinates to perform constrained layout in
202202
[left, bottom, width, height], each from 0-1.
203203
"""
@@ -207,7 +207,7 @@ def __init__(self, *, h_pad=None, w_pad=None,
207207
h_pad=mpl.rcParams['figure.constrained_layout.h_pad'],
208208
wspace=mpl.rcParams['figure.constrained_layout.wspace'],
209209
hspace=mpl.rcParams['figure.constrained_layout.hspace'],
210-
rect=[0, 0, 1, 1])
210+
rect=(0, 0, 1, 1))
211211
# set anything that was passed in (None will be ignored):
212212
self.set(w_pad=w_pad, h_pad=h_pad, wspace=wspace, hspace=hspace,
213213
rect=rect)

0 commit comments

Comments
 (0)