@@ -1242,8 +1242,8 @@ def make_axes_gridspec(parents, **kw):
1242
1242
# map the extent of the gridspec from indices to rows and columns.
1243
1243
# We need this below to assign the parents into the new gridspec.
1244
1244
ncols0 = gsp0 .get_geometry ()[1 ]
1245
- minrow ,mincol = index2rowcolunm (minind ,ncols0 )
1246
- maxrow ,maxcol = index2rowcolunm (maxind ,ncols0 )
1245
+ minrow , mincol = index2rowcolunm (minind , ncols0 )
1246
+ maxrow , maxcol = index2rowcolunm (maxind , ncols0 )
1247
1247
nrows = maxrow - minrow + 1
1248
1248
ncols = maxcol - mincol + 1
1249
1249
@@ -1298,25 +1298,25 @@ def make_axes_gridspec(parents, **kw):
1298
1298
gsnew = gs_from_subplotspec (nrows , ncols , subplot_spec = gs [0 ])
1299
1299
1300
1300
for parent in parents :
1301
- geo = parent .get_subplotspec ().get_geometry ()
1301
+ geo = parent .get_subplotspec ().get_geometry ()
1302
1302
ncol0 = geo [1 ]
1303
1303
1304
1304
# remap the old min gridspec index (geo[2]) into a new
1305
1305
# index.
1306
- oldrow ,oldcol = index2rowcolunm (geo [2 ],ncol0 )
1307
- newrow = oldrow - minrow + 1
1308
- newcol = oldcol - mincol + 1
1309
- newminind = rowcolunm2index (newrow ,newcol ,ncols )
1306
+ oldrow , oldcol = index2rowcolunm (geo [2 ], ncol0 )
1307
+ newrow = oldrow - minrow + 1
1308
+ newcol = oldcol - mincol + 1
1309
+ newminind = rowcolunm2index (newrow , newcol , ncols )
1310
1310
1311
1311
# remap the old max gridspec index (geo[3]) into a new
1312
1312
# index.
1313
- oldrow ,oldcol = index2rowcolunm (geo [3 ],ncol0 )
1314
- newrow = oldrow - minrow + 1
1315
- newcol = oldcol - mincol + 1
1316
- newmaxind = rowcolunm2index (newrow ,newcol ,ncols )
1313
+ oldrow , oldcol = index2rowcolunm (geo [3 ], ncol0 )
1314
+ newrow = oldrow - minrow + 1
1315
+ newcol = oldcol - mincol + 1
1316
+ newmaxind = rowcolunm2index (newrow , newcol , ncols )
1317
1317
1318
1318
# change the subplotspec for this parent.
1319
- parent .set_subplotspec (gridspec .SubplotSpec (gsnew ,newminind ,newmaxind ))
1319
+ parent .set_subplotspec (gridspec .SubplotSpec (gsnew , newminind , newmaxind ))
1320
1320
parent .update_params ()
1321
1321
parent .set_position (parent .figbox )
1322
1322
parent .set_anchor (panchor )
0 commit comments