(alignment)
| 781 | |
| 782 | @pytest.mark.parametrize('alignment', ('center', 'left', 'right')) |
| 783 | def test_legend_alignment(alignment): |
| 784 | fig, ax = plt.subplots() |
| 785 | ax.plot(range(10), label='test') |
| 786 | leg = ax.legend(title="Aardvark", alignment=alignment) |
| 787 | assert leg.get_children()[0].align == alignment |
| 788 | assert leg.get_alignment() == alignment |
| 789 | |
| 790 | |
| 791 | @pytest.mark.parametrize('loc', ('center', 'best',)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…