-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
plotting.bar should not manually set a tick offset #7262
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
Relevant mpl docs: http://matplotlib.org/1.3.1/api/axes_api.html#matplotlib.axes.Axes.bar |
@tacaswell But it seems the code is already using |
This is fixed in 0.14 (#6691). |
closing as fixed |
I can confirm this indeed works in master, so plotting a line (as done in the SO question) will be automatically in the middle of the bars. |
Sorry for the noise, the checkout I have on my computer is apparently out of date. |
The
align
kwarg ofAxes.bar{h}
will take care of all of that logic for you. Making it so that the tick labels do not match the data coordinates cause problems when trying to plot overlays (see http://stackoverflow.com/q/23909249/380231).The text was updated successfully, but these errors were encountered: