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

Function test_errorbar_with_prop_cycle

lib/matplotlib/tests/test_axes.py:4759–4776  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

4757
4758@check_figures_equal()
4759def test_errorbar_with_prop_cycle(fig_test, fig_ref):
4760 ax = fig_ref.subplots()
4761 ax.errorbar(x=[2, 4, 10], y=[0, 1, 2], yerr=0.5,
4762 ls='--', marker='s', mfc='k')
4763 ax.errorbar(x=[2, 4, 10], y=[2, 3, 4], yerr=0.5, color='tab:green',
4764 ls=':', marker='s', mfc='y')
4765 ax.errorbar(x=[2, 4, 10], y=[4, 5, 6], yerr=0.5, fmt='tab:blue',
4766 ls='-.', marker='o', mfc='c')
4767 ax.set_xlim(1, 11)
4768
4769 _cycle = cycler(ls=['--', ':', '-.'], marker=['s', 's', 'o'],
4770 mfc=['k', 'y', 'c'], color=['b', 'g', 'r'])
4771 plt.rc("axes", prop_cycle=_cycle)
4772 ax = fig_test.subplots()
4773 ax.errorbar(x=[2, 4, 10], y=[0, 1, 2], yerr=0.5)
4774 ax.errorbar(x=[2, 4, 10], y=[2, 3, 4], yerr=0.5, color='tab:green')
4775 ax.errorbar(x=[2, 4, 10], y=[4, 5, 6], yerr=0.5, fmt='tab:blue')
4776 ax.set_xlim(1, 11)
4777
4778
4779def test_errorbar_every_invalid():

Callers

nothing calls this directly

Calls 4

cyclerFunction · 0.85
subplotsMethod · 0.45
errorbarMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…