Documentation Link
https://matplotlib.org/devdocs/gallery/lines_bars_and_markers/markevery_prop_cycle.html
Problem
This is basically a proof that a bug was fixed, but is not instructive as an example (and horrible from a visual perspective).
Suggested improvement
Convert the code into a test.
A @check_figures_equal comparing rcParams prop-cycle vs. explicitly set via keyword should do.
Matplotlib Version
3.5.0