Title: axvline incorrectly tries to handle unitized ymin, ymax · Issue #12198 · matplotlib/matplotlib · GitHub
Open Graph Title: axvline incorrectly tries to handle unitized ymin, ymax · Issue #12198 · matplotlib/matplotlib
X Title: axvline incorrectly tries to handle unitized ymin, ymax · Issue #12198 · matplotlib/matplotlib
Description: After line = plt.axvline( x=.5, ymin=matplotlib.dates.num2date(1), ymax=matplotlib.dates.num2date(1.05)) line.set_clip_on(False) and panning the axes around, one sees that matplotlib (3.0) converted ymin and ymax to the scalar values 1 a...
Open Graph Description: After line = plt.axvline( x=.5, ymin=matplotlib.dates.num2date(1), ymax=matplotlib.dates.num2date(1.05)) line.set_clip_on(False) and panning the axes around, one sees that matplotlib (3.0) converte...
X Description: After line = plt.axvline( x=.5, ymin=matplotlib.dates.num2date(1), ymax=matplotlib.dates.num2date(1.05)) line.set_clip_on(False) and panning the axes around, one sees that matplotlib (3.0) converte...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12198
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"axvline incorrectly tries to handle unitized ymin, ymax","articleBody":"After\r\n```\r\nline = plt.axvline(\r\n x=.5, ymin=matplotlib.dates.num2date(1), ymax=matplotlib.dates.num2date(1.05))\r\nline.set_clip_on(False)\r\n```\r\nand panning the axes around, one sees that matplotlib (3.0) converted ymin and ymax to the scalar values 1 and 1.05, which is not correct: ymin and ymax are values relative to the axes bounds and thus intrinsically unitless; passing unitized data to ymin or ymax should result in an error.\r\n\r\nThe same point likely applies to axhline, axvspan, axhspan.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2018-09-21T11:47:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/12198/matplotlib/issues/12198"}
| 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:3e0d5d1b-9328-cd8e-26a5-3af1d1a09028 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F60:217CF9:FBA4DE:15429F4:6A539A82 |
| html-safe-nonce | b3e9c44f301e626ba6139d24d9e23d38d96fd38d740ce48cb55f641d4e845117 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjYwOjIxN0NGOTpGQkE0REU6MTU0MjlGNDo2QTUzOUE4MiIsInZpc2l0b3JfaWQiOiI2NTgwMzA0NTA5NjI4ODE2MDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bb0d1793a00f5b75baa1f604a068f15bcbec0d543da7af614bdf7f50bfd4399f |
| hovercard-subject-tag | issue:362579240 |
| 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/12198/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ed75c2c256c8626bc4174ad40ebae3ba010d6cf2dea56dbdf5a2edf2f3a487b/matplotlib/matplotlib/issues/12198 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed75c2c256c8626bc4174ad40ebae3ba010d6cf2dea56dbdf5a2edf2f3a487b/matplotlib/matplotlib/issues/12198 |
| og:image:alt | After line = plt.axvline( x=.5, ymin=matplotlib.dates.num2date(1), ymax=matplotlib.dates.num2date(1.05)) line.set_clip_on(False) and panning the axes around, one sees that matplotlib (3.0) converte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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