File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -203,15 +203,17 @@ def make_layoutgrids_gs(layoutgrids, gs):
203
203
if parentgs not in layoutgrids :
204
204
layoutgrids = make_layoutgrids_gs (layoutgrids , parentgs )
205
205
subspeclb = layoutgrids [parentgs ]
206
+ # get a unique representation:
207
+ rep = object .__repr__ (gs ) + 'top'
206
208
# gridspecfromsubplotspec need an outer container:
207
- if f' { gs } top' not in layoutgrids :
208
- layoutgrids [f' { gs } top' ] = mlayoutgrid .LayoutGrid (
209
+ if rep not in layoutgrids :
210
+ layoutgrids [rep ] = mlayoutgrid .LayoutGrid (
209
211
parent = subspeclb ,
210
212
name = 'top' ,
211
213
nrows = 1 , ncols = 1 ,
212
214
parent_pos = (subplot_spec .rowspan , subplot_spec .colspan ))
213
215
layoutgrids [gs ] = mlayoutgrid .LayoutGrid (
214
- parent = layoutgrids [f' { gs } top' ],
216
+ parent = layoutgrids [rep ],
215
217
name = 'gridspec' ,
216
218
nrows = gs ._nrows , ncols = gs ._ncols ,
217
219
width_ratios = gs .get_width_ratios (),
29E4
You can’t perform that action at this time.
0 commit comments