@@ -349,15 +349,16 @@ def test_constrained_layout20():
349
349
mesh = ax .pcolormesh (gx , gx , img )
350
350
fig .colorbar (mesh )
351
351
352
+
352
353
def test_constrained_layout21 ():
353
354
'#11035: repeated calls to suptitle should not alter the layout'
354
355
fig , ax = plt .subplots (constrained_layout = True )
355
356
356
- fig .suptitle (f"Suptitle #0 " )
357
+ fig .suptitle ("Suptitle0 " )
357
358
fig .canvas .draw ()
358
359
extents0 = np .copy (ax .get_position ().extents )
359
360
360
- fig .suptitle (f"Suptitle #1 " )
361
+ fig .suptitle ("Suptitle1 " )
361
362
fig .canvas .draw ()
362
363
extents1 = np .copy (ax .get_position ().extents )
363
364
@@ -371,7 +372,7 @@ def test_constrained_layout22():
371
372
fig .canvas .draw ()
372
373
extents0 = np .copy (ax .get_position ().extents )
373
374
374
- fig .suptitle (f "Suptitle" , y = 0.5 )
375
+ fig .suptitle ("Suptitle" , y = 0.5 )
375
376
fig .canvas .draw ()
376
377
extents1 = np .copy (ax .get_position ().extents )
377
378
@@ -386,4 +387,4 @@ def test_constrained_layout23():
386
387
387
388
for i in range (2 ):
388
389
fig , ax = plt .subplots (num = "123" , constrained_layout = True , clear = True )
389
- fig .suptitle (f "Suptitle { i } " .format (i ))
390
+ fig .suptitle ("Suptitle{ }" .format (i ))
0 commit comments