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

Function test_usetex_preamble

lib/matplotlib/tests/test_backend_ps.py:203–210  ·  view source on GitHub ↗
(caplog)

Source from the content-addressed store, hash-verified

201
202@needs_usetex
203def test_usetex_preamble(caplog):
204 mpl.rcParams.update({
205 "text.usetex": True,
206 # Check that these don't conflict with the packages loaded by default.
207 "text.latex.preamble": r"\usepackage{color,graphicx,textcomp}",
208 })
209 plt.figtext(.5, .5, "foo")
210 plt.savefig(io.BytesIO(), format="ps")
211
212
213@image_comparison(["useafm.eps"], style='_classic_test')

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
savefigMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…