Title: Raise an error or a warning when ylim's min == 0 and yscale == "log" · Issue #7299 · matplotlib/matplotlib · GitHub
Open Graph Title: Raise an error or a warning when ylim's min == 0 and yscale == "log" · Issue #7299 · matplotlib/matplotlib
X Title: Raise an error or a warning when ylim's min == 0 and yscale == "log" · Issue #7299 · matplotlib/matplotlib
Description: import matplotlib.pyplot as plt import numpy as np y = np.arange(3000, 112471, 10000) fig, ax = plt.subplots() ax.set_yscale("log") ax.plot(y, linewidth=0, marker=".") ax.set_ylim((0, 1e5)) yields: Basically, the ymin gets ignored (somet...
Open Graph Description: import matplotlib.pyplot as plt import numpy as np y = np.arange(3000, 112471, 10000) fig, ax = plt.subplots() ax.set_yscale("log") ax.plot(y, linewidth=0, marker=".") ax.set_ylim((0, 1e5)) yields:...
X Description: import matplotlib.pyplot as plt import numpy as np y = np.arange(3000, 112471, 10000) fig, ax = plt.subplots() ax.set_yscale("log") ax.plot(y, linewidth=0, marker=".") ax.set_yl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7299
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Raise an error or a warning when ylim's min == 0 and yscale == \"log\"","articleBody":"``` python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\ny = np.arange(3000, 112471, 10000)\n\nfig, ax = plt.subplots()\nax.set_yscale(\"log\")\nax.plot(y, linewidth=0, marker=\".\")\nax.set_ylim((0, 1e5))\n```\n\nyields:\n\n\n\nBasically, the ymin gets ignored (sometimes) when ymin == 0 and yscale == 0.\n\nThe code should raise an error or at least a warning.\n\nversion: 2.0.0b4.post2455+g063cd41\n","author":{"url":"https://github.com/NelleV","@type":"Person","name":"NelleV"},"datePublished":"2016-10-17T23:42:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/7299/matplotlib/issues/7299"}
| 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:421bae8c-9557-5d35-0631-3536e3df3bd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B202:1A5270:254E081:331F2D2:6A53B958 |
| html-safe-nonce | 8e2048adf9d84e74283cfa6f3a4a8413639b43bf3f34b67ea713f1a494d0b5ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjAyOjFBNTI3MDoyNTRFMDgxOjMzMUYyRDI6NkE1M0I5NTgiLCJ2aXNpdG9yX2lkIjoiNDIzNTE0OTU0ODc5MDcyNDk1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a1012f48b37afc17b115ee01c6d88c3317770d2cf8bad9bc3736b53cb25a06aa |
| hovercard-subject-tag | issue:183556173 |
| 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/7299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34bf03800ad3cb7f66445dac4b016e49db0008f1091670f8d74b86425bc5ef02/matplotlib/matplotlib/issues/7299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34bf03800ad3cb7f66445dac4b016e49db0008f1091670f8d74b86425bc5ef02/matplotlib/matplotlib/issues/7299 |
| og:image:alt | import matplotlib.pyplot as plt import numpy as np y = np.arange(3000, 112471, 10000) fig, ax = plt.subplots() ax.set_yscale("log") ax.plot(y, linewidth=0, marker=".") ax.set_ylim((0, 1e5)) yields:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NelleV |
| 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