Skip to content
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

Add note to errorbar function about sign of errors #12775

Merged
merged 1 commit into from
Nov 8, 2018
Merged

Add note to errorbar function about sign of errors #12775

merged 1 commit into from
Nov 8, 2018

Conversation

themightyoarfish
Copy link

This is purely a docstring change.

I was tripped up by the sign the errors need to have. Both lower and upper bounds are always positive numbers, so it would be useful to note this in the documentation.

@@ -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?)

@tacaswell tacaswell added this to the v3.0.x milestone Nov 8, 2018
@tacaswell tacaswell merged commit 2b634d9 into matplotlib:master Nov 8, 2018
@tacaswell
Copy link
Member

This is an improvement, going to merge.

Thanks @themightyoarfish ! Congratulations on your first Matplotlib contribution 🎉 ! Hopefully we will here from you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants