Skip to content

Commit 1c5796a

Browse files
committed
FIX
1 parent cc034ad commit 1c5796a

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
@@ -203,9 +203,9 @@ def make_layoutgrids_gs(layoutgrids, gs):
203203
if parentgs not in layoutgrids:
204204
layoutgrids = make_layoutgrids_gs(layoutgrids, parentgs)
205205
subspeclb = layoutgrids[parentgs]
206-
# get a unique representation:
207-
rep = object.__repr__(gs) + 'top'
208206
# gridspecfromsubplotspec need an outer container:
207+
# get a unique representation:
208+
rep = (gs, 'top')
209209
if rep not in layoutgrids:
210210
layoutgrids[rep] = mlayoutgrid.LayoutGrid(
211211
parent=subspeclb,

0 commit comments

Comments
 (0)