Title: Bars are not visible in bar plot when log scale is enabled · Issue #9701 · matplotlib/matplotlib · GitHub
Open Graph Title: Bars are not visible in bar plot when log scale is enabled · Issue #9701 · matplotlib/matplotlib
X Title: Bars are not visible in bar plot when log scale is enabled · Issue #9701 · matplotlib/matplotlib
Description: When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty. See also this bug report #163 and the corresponding fix #2147. Commit dda42ab changed the default value of nonpos parameter from clip to m...
Open Graph Description: When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty. See also this bug report #163 and the corresponding fix #2147. Commit dda42ab changed the default ...
X Description: When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty. See also this bug report #163 and the corresponding fix #2147. Commit dda42ab changed the default ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9701
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bars are not visible in bar plot when log scale is enabled","articleBody":"When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty.\r\n\r\nSee also this bug report https://github.com/matplotlib/matplotlib/issues/163 and the corresponding fix https://github.com/matplotlib/matplotlib/pull/2147.\r\n\r\nCommit https://github.com/matplotlib/matplotlib/commit/dda42abd96332578d6764c8f00ae6f520f0691bd changed the default value of `nonpos` parameter from `clip` to `mask` which introduced the issue. I cannot tell whether `clip` should be default behavior or `mask` doesn't work as intended.\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.bar(x=[1,2,3], height=[1000,2,3])\r\nplt.yscale(\"log\")\r\nplt.show()\r\n```\r\nResult is an empty plot. Saving to an image file or PDF doesn't make a change.\r\n\r\nAdding\r\n```python\r\nplt.yscale(\"log\", nonposy=\"clip\")\r\n```\r\nfixes that issue.\r\n\r\n\r\nAdditional info:\r\nLatest Miniconda\r\nVarious platforms (Ubuntu 16.04, Windows 10, macOS)\r\nMatplotlib 2.1.0, Qt5Agg (from Anaconda)\r\n \r\n\r\n","author":{"url":"https://github.com/laborleben","@type":"Person","name":"laborleben"},"datePublished":"2017-11-06T16:39:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9701/matplotlib/issues/9701"}
| 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:b24d9abd-9aee-1840-ffb8-1fd483ba1337 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E17E:13EA66:822EAD:B03995:6A515049 |
| html-safe-nonce | 0fd28e7e76f122b016e31823cbfc39deaa1f48b1d6a982d69559db33f6b65bf6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTdFOjEzRUE2Njo4MjJFQUQ6QjAzOTk1OjZBNTE1MDQ5IiwidmlzaXRvcl9pZCI6Ijg4NjEyMzUzNjg0OTU3NjM1MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4796efec0985666dcd884e52ab950344c33f772645a421def1df39be8036ec6f |
| hovercard-subject-tag | issue:271540261 |
| 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/9701/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da00d7a6aed9a10bcb463fd878aa30b30e65aa2cdbc1bf9d2fa480566f6fecb9/matplotlib/matplotlib/issues/9701 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da00d7a6aed9a10bcb463fd878aa30b30e65aa2cdbc1bf9d2fa480566f6fecb9/matplotlib/matplotlib/issues/9701 |
| og:image:alt | When enabling log scale for the bar plot, the bars are not plotted properly and the plot is empty. See also this bug report #163 and the corresponding fix #2147. Commit dda42ab changed the default ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | laborleben |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f17634ed2af1d116850bcea6c63a70a4d72970f33ade1dd3eef3764b7e16994 |
| 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 | 511bff6ea06e144ed085ff736aea4c6404987b00 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width