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

Function test_usetex_with_underscore

lib/matplotlib/tests/test_usetex.py:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133
134def test_usetex_with_underscore():
135 plt.rcParams["text.usetex"] = True
136 df = {"a_b": range(5)[::-1], "c": range(5)}
137 fig, ax = plt.subplots()
138 ax.plot("c", "a_b", data=df)
139 ax.legend()
140 ax.text(0, 0, "foo_bar", usetex=True)
141 plt.draw()
142
143
144@pytest.mark.flaky(reruns=3) # Tends to hit a TeX cache lock on AppVeyor.

Callers

nothing calls this directly

Calls 5

subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45
textMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…