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

Function test_font_heuristica

lib/matplotlib/tests/test_backend_pdf.py:468–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466 reason="LaTeX lacks heuristica package")
467@image_comparison(["font-heuristica.pdf"], style='_classic_test')
468def test_font_heuristica():
469 # Heuristica uses the callothersubr operator for some glyphs
470 mpl.rcParams['text.latex.preamble'] = '\n'.join((
471 r'\usepackage{heuristica}',
472 r'\usepackage[T1]{fontenc}',
473 r'\usepackage[utf8]{inputenc}'
474 ))
475 fig, ax = plt.subplots()
476 ax.text(0.1, 0.1, r"BHTem fi ffl 1234", usetex=True, fontsize=50)
477 ax.set_xticks([])
478 ax.set_yticks([])
479
480
481@pytest.mark.skipif(not _has_tex_package("DejaVuSans"),

Callers

nothing calls this directly

Calls 5

joinMethod · 0.80
set_xticksMethod · 0.80
set_yticksMethod · 0.80
subplotsMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…