Title: Bug in bar plot, leading zeros in data (bar heights) are ignored. · Issue #2150 · matplotlib/matplotlib · GitHub
Open Graph Title: Bug in bar plot, leading zeros in data (bar heights) are ignored. · Issue #2150 · matplotlib/matplotlib
X Title: Bug in bar plot, leading zeros in data (bar heights) are ignored. · Issue #2150 · matplotlib/matplotlib
Description: The bar plot function seems to ignore bar heights that are zero. For example, the data set called "freq1" does not contain a leading zero and the bar heights are correct. The data set "freq2" contains a leading zeros, both of which are i...
Open Graph Description: The bar plot function seems to ignore bar heights that are zero. For example, the data set called "freq1" does not contain a leading zero and the bar heights are correct. The data set "freq2" conta...
X Description: The bar plot function seems to ignore bar heights that are zero. For example, the data set called "freq1" does not contain a leading zero and the bar heights are correct. The data set &qu...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2150
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in bar plot, leading zeros in data (bar heights) are ignored.","articleBody":"The bar plot function seems to ignore bar heights that are zero. For example, the data set called \"freq1\" does _not_ contain a leading zero and the bar heights are correct. The data set \"freq2\" contains a leading zeros, both of which are ignored in the bar plot.\n\n```\nimport pylab \nimport numpy as np\nfaces = np.array(range(11)) # the histogram bin faces\nleft_face = faces[:-1] # the left side face of the cell\nbin_width = faces[1:]-faces[:-1]\nfreq1 = [-2,0,3,4,5,6,7,8,9,12]\nfreq2 = [0,0,3,4,5,6,7,8,9,12] # error with this data set\npylab.bar(left_face, freq1, width=bin_width)\npylab.show()\npylab.bar(left_face, freq2, width=bin_width)\npylab.show()\n```\n","author":{"url":"https://github.com/danieljfarrell","@type":"Person","name":"danieljfarrell"},"datePublished":"2013-06-23T11:59:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2150/matplotlib/issues/2150"}
| 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:4e770d5b-1ebb-8890-dacd-2e221dcf7cec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C01A:24214A:18DDC6C:21F0750:6A53EDA0 |
| html-safe-nonce | 245592c0b574b59aa3eff90f440d4e684fb8f71c2a84e24f5ba9cddda052435b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDFBOjI0MjE0QToxOEREQzZDOjIxRjA3NTA6NkE1M0VEQTAiLCJ2aXNpdG9yX2lkIjoiNjQ0NjU0NDIzNzQ3MDYzMjAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb442ec260f7b1a87813f9faa90f0d31481226aa03f8ceced546f74f2f75ba33 |
| hovercard-subject-tag | issue:15896228 |
| 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/2150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/877f01f4d19403d150f0980cc50334dd0cacdf16315dc8c8a3188d107a3bcecb/matplotlib/matplotlib/issues/2150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/877f01f4d19403d150f0980cc50334dd0cacdf16315dc8c8a3188d107a3bcecb/matplotlib/matplotlib/issues/2150 |
| og:image:alt | The bar plot function seems to ignore bar heights that are zero. For example, the data set called "freq1" does not contain a leading zero and the bar heights are correct. The data set "freq2" conta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danieljfarrell |
| 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