()
| 706 | |
| 707 | |
| 708 | def test_legend_title_empty(): |
| 709 | # test that if we don't set the legend title, that |
| 710 | # it comes back as an empty string, and that it is not |
| 711 | # visible: |
| 712 | fig, ax = plt.subplots() |
| 713 | ax.plot(range(10), label="mock data") |
| 714 | leg = ax.legend() |
| 715 | assert leg.get_title().get_text() == "" |
| 716 | assert not leg.get_title().get_visible() |
| 717 | |
| 718 | |
| 719 | def test_legend_proper_window_extent(): |