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 cd17206

Browse filesBrowse files
committed
added test for suptitle size specified in fontdict
1 parent d7616cd commit cd17206
Copy full SHA for cd17206

File tree

1 file changed

+6
-0
lines changed
Filter options

1 file changed

+6
-0
lines changed

‎lib/matplotlib/tests/test_figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_figure.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ def test_suptitle_fontproperties():
287287
assert txt.get_weight() == fps.get_weight()
288288

289289

290+
def test_suptitle_fontdict_size():
291+
fig, _ = plt.subplots()
292+
fig.suptitle('suptitle', fontdict=dict(size=21))
293+
assert fig._suptitle.get_fontsize() == 21
294+
295+
290296
def test_suptitle_subfigures():
291297
fig = plt.figure(figsize=(4, 3))
292298
sf1, sf2 = fig.subfigures(1, 2)

0 commit comments

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