MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_plot_format_kwarg_redundant

Function test_plot_format_kwarg_redundant

lib/matplotlib/tests/test_axes.py:883–891  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

881
882
883def 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()

Callers

nothing calls this directly

Calls 2

plotMethod · 0.45
errorbarMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…