| 881 | |
| 882 | |
| 883 | def test_plot_format_kwarg_redundant(): |
| 884 | with pytest.warns(UserWarning, match="marker .* redundantly defined"): |
| 885 | plt.plot([0], [0], 'o', marker='x') |
| 886 | with pytest.warns(UserWarning, match="linestyle .* redundantly defined"): |
| 887 | plt.plot([0], [0], '-', linestyle='--') |
| 888 | with pytest.warns(UserWarning, match="color .* redundantly defined"): |
| 889 | plt.plot([0], [0], 'r', color='blue') |
| 890 | # smoke-test: should not warn |
| 891 | plt.errorbar([0], [0], fmt='none', color='blue') |
| 892 | |
| 893 | |
| 894 | @check_figures_equal() |