You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bars in plt.bar graph centered on "left" value #8882
# If applicable, paste the console output here
#
#
Expected outcome
Bars should be left-aligned to the "left" value.
As the attached plot shows: Bars are centered on "left" value, and not left-aligned to it.
@tacaswell has an idea to fix all of this (essentially, accept both "left"
and "center" somehow through some kwargs magic). How is the documentation
incorrect, though? Does it say that "left" is the default?
The first paragraph in the function documentation says:
Make a bar plot with rectangles bounded by:
left, left + width, bottom, bottom + height
(left, right, bottom and top edges)
which clearly implies that "left" is in fact the left edges of the drawn rectangles. If this can't be fixed easily, please at least update the first paragraph of the documentation to explain the "align" keyword.
On Mon, Jul 17, 2017 at 4:46 PM, Åsmund Steen Skjæveland < ***@***.***> wrote:
The first paragraph in the function documentation says:
Make a bar plot with rectangles bounded by:
left, left + width, bottom, bottom + height
(left, right, bottom and top edges)
which clearly implies that "left" is in fact the left edges of the drawn
rectangles. If this can't be fixed easily, please at least update the first
paragraph of the documentation to explain the "align" keyword.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8882 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-EgLfpSMT64OGH4SX2wOmFv0QLz8ks5sO8gxgaJpZM4OZBIP>
.
Activity
QuLogic commentedon Jul 15, 2017
This is expected, if odd behaviour;
leftcannot be renamed tocenterdue to API compatibility. See #7954.skjaeve commentedon Jul 15, 2017
WeatherGod commentedon Jul 15, 2017
QuLogic commentedon Jul 15, 2017
It doesn't exactly say it's the default, but it does say that the rectangles will be
(left, left+width)which is not quite correct when it's centred.skjaeve commentedon Jul 17, 2017
The first paragraph in the function documentation says:
which clearly implies that "left" is in fact the left edges of the drawn rectangles. If this can't be fixed easily, please at least update the first paragraph of the documentation to explain the "align" keyword.
WeatherGod commentedon Jul 17, 2017
API: change signature of bar and barh
API: change signature of bar and barh
API: change signature of bar and barh
API: change signature of bar and barh