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

Function test_fallback_smoke

lib/matplotlib/tests/test_ft2font.py:983–990  ·  view source on GitHub ↗
(fmt)

Source from the content-addressed store, hash-verified

981
982@pytest.mark.parametrize('fmt', ['pdf', 'png', 'ps', 'raw', 'svg'])
983def test_fallback_smoke(fmt):
984 fonts, test_str = _gen_multi_font_text()
985 plt.rcParams['font.size'] = 16
986 fig = plt.figure(figsize=(4.75, 1.85))
987 fig.text(0.5, 0.5, test_str,
988 horizontalalignment='center', verticalalignment='center')
989
990 fig.savefig(io.BytesIO(), format=fmt)
991
992
993@pytest.mark.parametrize("font_list",

Callers

nothing calls this directly

Calls 4

_gen_multi_font_textFunction · 0.90
figureMethod · 0.80
textMethod · 0.45
savefigMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…