Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0b69731

Browse filesBrowse files
committed
TST: fix CL tests
1 parent 0e47dab commit 0b69731
Copy full SHA for 0b69731

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎lib/matplotlib/tests/test_constrainedlayout.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_constrainedlayout.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,16 @@ def test_constrained_layout20():
349349
mesh = ax.pcolormesh(gx, gx, img)
350350
fig.colorbar(mesh)
351351

352+
352353
def test_constrained_layout21():
353354
'#11035: repeated calls to suptitle should not alter the layout'
354355
fig, ax = plt.subplots(constrained_layout=True)
355356

356-
fig.suptitle(f"Suptitle #0")
357+
fig.suptitle("Suptitle0")
357358
fig.canvas.draw()
358359
extents0 = np.copy(ax.get_position().extents)
359360

360-
fig.suptitle(f"Suptitle #1")
361+
fig.suptitle("Suptitle1")
361362
fig.canvas.draw()
362363
extents1 = np.copy(ax.get_position().extents)
363364

@@ -371,7 +372,7 @@ def test_constrained_layout22():
371372
fig.canvas.draw()
372373
extents0 = np.copy(ax.get_position().extents)
373374

374-
fig.suptitle(f"Suptitle", y=0.5)
375+
fig.suptitle("Suptitle", y=0.5)
375376
fig.canvas.draw()
376377
extents1 = np.copy(ax.get_position().extents)
377378

@@ -386,4 +387,4 @@ def test_constrained_layout23():
386387

387388
for i in range(2):
388389
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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.