()
| 593 | |
| 594 | @needs_usetex |
| 595 | def test_usetex_is_copied(): |
| 596 | # Indirectly tests that update_from (which is used to copy tick label |
| 597 | # properties) copies usetex state. |
| 598 | fig = plt.figure() |
| 599 | plt.rcParams["text.usetex"] = False |
| 600 | ax1 = fig.add_subplot(121) |
| 601 | plt.rcParams["text.usetex"] = True |
| 602 | ax2 = fig.add_subplot(122) |
| 603 | fig.canvas.draw() |
| 604 | for ax, usetex in [(ax1, False), (ax2, True)]: |
| 605 | for t in ax.xaxis.majorTicks: |
| 606 | assert t.label1.get_usetex() == usetex |
| 607 | |
| 608 | |
| 609 | @needs_usetex |
nothing calls this directly
no test coverage detected
searching dependent graphs…