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

Function test_bold_font_output

lib/matplotlib/tests/test_backend_svg.py:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72@image_comparison(['bold_font_output.svg'], style='mpl20')
73def test_bold_font_output():
74 fig, ax = plt.subplots()
75 ax.plot(np.arange(10), np.arange(10))
76 ax.set_xlabel('nonbold-xlabel')
77 ax.set_ylabel('bold-ylabel', fontweight='bold')
78 # set weight as integer to assert it's handled properly
79 ax.set_title('bold-title', fontweight=600)
80
81
82@image_comparison(['bold_font_output_with_none_fonttype.svg'], style='_classic_test')

Callers

nothing calls this directly

Calls 5

set_xlabelMethod · 0.80
set_ylabelMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
set_titleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…