Title: bar / hist : gap between first bar and other bars with lw=0.0 · Issue #4602 · matplotlib/matplotlib · GitHub
Open Graph Title: bar / hist : gap between first bar and other bars with lw=0.0 · Issue #4602 · matplotlib/matplotlib
X Title: bar / hist : gap between first bar and other bars with lw=0.0 · Issue #4602 · matplotlib/matplotlib
Description: I like to make solid bar plots without lines around each bar, eg: plt.hist(data, fc="gray", lw=0.0, alpha=0.5) Problem: the first bar does not exactly line up with the other bars. There is a slight misalignment visible on the right and b...
Open Graph Description: I like to make solid bar plots without lines around each bar, eg: plt.hist(data, fc="gray", lw=0.0, alpha=0.5) Problem: the first bar does not exactly line up with the other bars. There is a slight...
X Description: I like to make solid bar plots without lines around each bar, eg: plt.hist(data, fc="gray", lw=0.0, alpha=0.5) Problem: the first bar does not exactly line up with the other bars. There i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4602
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bar / hist : gap between first bar and other bars with lw=0.0","articleBody":"I like to make solid bar plots without lines around each bar, eg:\n\n``` python\nplt.hist(data, fc=\"gray\", lw=0.0, alpha=0.5)\n```\n\nProblem: the first bar does not exactly line up with the other bars. There is a slight misalignment visible on the right and bottom edges. Depending on the window size this shows either as a white gap or a darker overlap (visible because alpha=0.5).\n\nThe other bars are all properly lined up.\n\nConfirmed both in the notebook inline mode and the QT backend on OSX.\n`matplotlib.__version__ = '1.4.3'`\n\nSteps to reproduce:\n\n``` python\nimport matplotlib.pylab as plt\nimport numpy as np\nplt.figure()\nplt.hist(np.random.uniform(0.0, 1.0, size=1000), fc=\"gray\", lw=0.0, alpha=0.5)\nplt.show()\n```\n\nThen resize the window and observe.\n","author":{"url":"https://github.com/damiendr","@type":"Person","name":"damiendr"},"datePublished":"2015-07-08T11:29:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/4602/matplotlib/issues/4602"}
| 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:33f3b748-afa2-1ba2-9f01-9ef8db1c1da5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C7A:2DCEA7:32075F0:4360BE8:6A53CC77 |
| html-safe-nonce | d8e5928483ccbd08a00be7828cd1ef1e3e960478dc988a8a7b93510880007391 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzdBOjJEQ0VBNzozMjA3NUYwOjQzNjBCRTg6NkE1M0NDNzciLCJ2aXNpdG9yX2lkIjoiMjI5MjA1Mjc5ODcyMzA1MDYxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a855a4d47e9d71af1cc688c29387230644bb0fb8121097d650bd54b19433962 |
| hovercard-subject-tag | issue:93767003 |
| 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/4602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/187ccde6c31dae6cc76c1a61d905a997ddb616dfbe49103d0a6946155ca33e43/matplotlib/matplotlib/issues/4602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/187ccde6c31dae6cc76c1a61d905a997ddb616dfbe49103d0a6946155ca33e43/matplotlib/matplotlib/issues/4602 |
| og:image:alt | I like to make solid bar plots without lines around each bar, eg: plt.hist(data, fc="gray", lw=0.0, alpha=0.5) Problem: the first bar does not exactly line up with the other bars. There is a slight... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | damiendr |
| 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