-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
fix axes barh default align option document #7758
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
Conversation
@@ -2259,7 +2259,7 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs): | |||
dictionary of kwargs to be passed to errorbar method. `ecolor` and | |||
`capsize` may be specified here rather than as independent kwargs. | |||
|
|||
align : ['edge' | 'center'], optional, default: 'edge' | |||
align : ['edge' | 'center'], optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to use the format of bar
with braces? The default is the first item, so change the order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QuLogic Done. The direction words are really fallible and I checked several time and being afraid to make mistakes.
@lspvic I went ahead and added a commit to fix the whitespace issues, I hope you do not mind. |
Who ever merges this, please remember to backport it! |
@tacaswell Never mind. |
Current coverage is 62.12% (diff: 100%)@@ master #7758 diff @@
==========================================
Files 174 174
Lines 56028 56028
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 34805 34805
Misses 21223 21223
Partials 0 0
|
DOC: fix Axes.barh default alignment option
backported to |
Since 2.0, default
align
option ofbar
andbarh
have changed to 'center', and the docstring ofbar
has been updated, but that ofbarh
is not. This PR fix the docstring asbar
.In addition, the default
align
option ofbar
is not presented in the docstring like:I'm not quite sure this will be appended to end of the docstring, because some other options in this page give the default value while some are not. If this default value should be appended, I will update this PR.