inconsistent behaviour of the errorevery option in pyplot.errorbar() to the markevery keyword #4438
Labels
API: consistency
Difficulty: Medium
https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Documentation
Milestone
When I set
markevery
anderrorevery
keywords together inpyplot.errorbar()
, it works only in the case for an integer parameter. However, though themarkevery
keyword inpyplot.plot()
allows more options as an input ([None | int | length-2 tuple of int | slice | list/array of int | float | length-2 tuple of float]),errorbar()
cannot handle such options. It would be nice iferrorevery
can accept the same kind of inputs asmarkevery
.Here is a piece of code which demonstrates the issue.
I got the following error message.
As a kind of bi-product, I found that a bool array with a length of N is also accepted as a valid input for
markevery
, but it's not documented in the manual (http://matplotlib.org/api/lines_api.html#matplotlib.lines.Line2D.set_markevery). For example, I can useindex_plot=[True, False, False, True, True, True, True, True, False, False]
in the example above.I'm using matplotlib 1.4.3 with Python 2.7.9.
The text was updated successfully, but these errors were encountered: