Title: bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" · Issue #7954 · matplotlib/matplotlib · GitHub
Open Graph Title: bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" · Issue #7954 · matplotlib/matplotlib
X Title: bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not "left" but "center" · Issue #7954 · matplotlib/matplotlib
Description: Bug report Bug summary Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired behavior is obtained in both cases when using align...
Open Graph Description: Bug report Bug summary Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired behavior is...
X Description: Bug report Bug summary Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired beh...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7954
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bar plot: in 2.0.0 bars not as given in the description, ie. first arg is not \"left\" but \"center\"","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nUsing ``bar``, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg ``align='center'`` was used. However, the desired behavior is obtained in both cases when using ``align = 'center'`` and ``align = 'edge'``. Just when ``align`` is not specified, it should be 'edge' aligned which it is not.\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.bar([1], [1])\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n**Expected outcome**\r\n\r\n\r\nIn matplotlib 1.5.3 I got the expected behavior.\r\n\r\n**Matplotlib version**\r\nmatplotlib 2.0.0\r\npython 3.6.0\r\nboth installed from the Arch Linux repository.","author":{"url":"https://github.com/t1nux","@type":"Person","name":"t1nux"},"datePublished":"2017-01-26T14:31:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/7954/matplotlib/issues/7954"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1bb202a1-fe46-8f65-9b03-1d9646740f90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4DC:3161F8:55AADC:72A17B:6A53EB49 |
| html-safe-nonce | d87f94f4b7bf58ccce4454e296c5bde49ae0a4010af7a56b6f11e99ac870081a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNERDOjMxNjFGODo1NUFBREM6NzJBMTdCOjZBNTNFQjQ5IiwidmlzaXRvcl9pZCI6IjQ4MTM2ODM1MjkwNTI1ODA2ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa9204f3c81b4863d8447d17eb6abbd309c1e0c44530f722cc66e054c9d119fb |
| hovercard-subject-tag | issue:203385230 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/7954/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c8fe6bb77a97d9a69490554c888d3e4a4fea5311271434e5f40fe2b51531c8e/matplotlib/matplotlib/issues/7954 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c8fe6bb77a97d9a69490554c888d3e4a4fea5311271434e5f40fe2b51531c8e/matplotlib/matplotlib/issues/7954 |
| og:image:alt | Bug report Bug summary Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired behavior is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | t1nux |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width