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 4a78e56

Browse filesBrowse files
committed
test and baseline image for suptitle size in fontdict
1 parent d7616cd commit 4a78e56
Copy full SHA for 4a78e56

File tree

2 files changed

+10
-0
lines changed
Filter options

2 files changed

+10
-0
lines changed
Loading

‎lib/matplotlib/tests/test_figure.py

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

289289

290+
@image_comparison(['suptitle_fontdict_size.png'], style='mpl20')
291+
def test_suptitle_fontdict_size():
292+
fig = plt.figure(figsize=(3, 3))
293+
sf1, sf2 = fig.subfigures(2, 1)
294+
# actual test
295+
sf1.suptitle('size in fontdict', fontdict=dict(size=20))
296+
# base-case for comparison purposes
297+
sf2.suptitle('size NOT in fontdict', size=20)
298+
299+
290300
def test_suptitle_subfigures():
291301
fig = plt.figure(figsize=(4, 3))
292302
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.