| 4757 | |
| 4758 | @check_figures_equal() |
| 4759 | def 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 | |
| 4779 | def test_errorbar_every_invalid(): |