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

Skip to content

Commit fd8686e

Browse files
committed
FIX: as_list
1 parent 4816537 commit fd8686e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _make_layout_margins(fig, renderer, *, w_pad=0, h_pad=0,
207207
hspace=hspace, wspace=wspace)
208208
panel._layoutgrid.parent.edit_outer_margin_mins(margins, ss)
209209

210-
for ax in fig._localaxes:
210+
for ax in fig._localaxes.as_list():
211211
if not hasattr(ax, 'get_subplotspec') or not ax.get_in_layout():
212212
continue
213213

@@ -453,7 +453,7 @@ def _reposition_axes(fig, renderer, *, w_pad=0, h_pad=0, hspace=0, wspace=0):
453453
w_pad=w_pad, h_pad=h_pad,
454454
wspace=wspace, hspace=hspace)
455455

456-
for ax in fig._localaxes:
456+
for ax in fig._localaxes.as_list():
457457
if not hasattr(ax, 'get_subplotspec') or not ax.get_in_layout():
458458
continue
459459

0 commit comments

Comments
 (0)