Skip to content

Add note to errorbar function about sign of errors #12775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2950,6 +2950,8 @@ def errorbar(self, x, y, yerr=None, xerr=None,
upper errors.
Copy link
Contributor

@anntzer anntzer Nov 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I think I'd rather have it go as a parenthetical statement here? e.g. (both of them must be positive). (It's also true for the other cases but I think it's kind of obvious for them?)

- *None*: No errorbar.

Note that all error arrays should have *positive* values.

See :doc:`/gallery/statistics/errorbar_features`
for an example on the usage of ``xerr`` and ``yerr``.

Expand Down