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

Function test_draw_text_as_path_fallback

lib/matplotlib/tests/test_text.py:1311–1319  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

1309
1310@image_comparison(['draw_text_fallback.png'], style='mpl20')
1311def test_draw_text_as_path_fallback(monkeypatch):
1312 # Delete RendererAgg.draw_text so that we use the RendererBase.draw_text fallback.
1313 monkeypatch.delattr('matplotlib.backends.backend_agg.RendererAgg.draw_text')
1314 heights = [2, 1.5, 3]
1315 fig = plt.figure(figsize=(6, sum(heights)))
1316 subfig = fig.subfigures(3, 1, height_ratios=heights)
1317 _test_complex_shaping(subfig[0])
1318 _test_text_features(subfig[1])
1319 _test_text_language(subfig[2])

Callers

nothing calls this directly

Calls 5

_test_complex_shapingFunction · 0.85
_test_text_featuresFunction · 0.85
_test_text_languageFunction · 0.85
figureMethod · 0.80
subfiguresMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…