(monkeypatch)
| 1309 | |
| 1310 | @image_comparison(['draw_text_fallback.png'], style='mpl20') |
| 1311 | def 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]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…