-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
plot.bar misalignment when width=1 #12979
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
Comments
As requested, output of pd.show_versions(): INSTALLED VERSIONScommit: None pandas: 0.18.0 Seeing the style of your figure, I'd guess you're using matplotlib 2.x (development)? Thus, it seems the first issue originates in matplotlib and is fixed in the development version of matplotlib, but not in the latest stable matplotlib version 1.5.1? With regard to the second issue, I knew the default is 0.5. It is just a matter of usability/consistency. Most optional arguments use the default value (i.c. 0.5) when one explicitly sets them to None. Apparently this isn't the case for the 'width' argument. Not very important of course, but I just thought of mentioning this. The fix/workaround is rather trivial. Adding the line |
As you use python2, looks to be caused by somewhere uses division by integer. PR is appreciated:) |
Two minor issues with the width optional argument of plot.bar() in Pandas 0.18.0:
Compare this with the correct behaviour when defining width as a float:
The text was updated successfully, but these errors were encountered: