()
| 5844 | |
| 5845 | |
| 5846 | def test_hlines_default(): |
| 5847 | fig, ax = plt.subplots() |
| 5848 | with mpl.rc_context({'lines.color': 'red'}): |
| 5849 | lines = ax.hlines(0.5, 0, 1) |
| 5850 | assert mpl.colors.same_color(lines.get_color(), 'red') |
| 5851 | |
| 5852 | |
| 5853 | @pytest.mark.parametrize('data', [[1, 2, 3, np.nan, 5], |