(alignment)
| 810 | |
| 811 | @pytest.mark.parametrize('alignment', ('center', 'left', 'right')) |
| 812 | def test_legend_set_alignment(alignment): |
| 813 | fig, ax = plt.subplots() |
| 814 | ax.plot(range(10), label='test') |
| 815 | leg = ax.legend() |
| 816 | leg.set_alignment(alignment) |
| 817 | assert leg.get_children()[0].align == alignment |
| 818 | assert leg.get_alignment() == alignment |
| 819 | |
| 820 | |
| 821 | @pytest.mark.parametrize('color', ('red', 'none', (.5, .5, .5))) |
nothing calls this directly
no test coverage detected
searching dependent graphs…