()
| 132 | |
| 133 | |
| 134 | def 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. |