MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_suptitle_fontproperties

Function test_suptitle_fontproperties

lib/matplotlib/tests/test_figure.py:330–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329
330def test_suptitle_fontproperties():
331 fig, ax = plt.subplots()
332 fps = mpl.font_manager.FontProperties(size='large', weight='bold')
333 txt = fig.suptitle('fontprops title', fontproperties=fps)
334 assert txt.get_fontsize() == fps.get_size_in_points()
335 assert txt.get_weight() == fps.get_weight()
336
337
338def test_suptitle_subfigures():

Callers

nothing calls this directly

Calls 5

get_weightMethod · 0.95
suptitleMethod · 0.80
subplotsMethod · 0.45
get_fontsizeMethod · 0.45
get_weightMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…