Title: Adjust autoscale behavior for ax.axline · Issue #16264 · matplotlib/matplotlib · GitHub
Open Graph Title: Adjust autoscale behavior for ax.axline · Issue #16264 · matplotlib/matplotlib
X Title: Adjust autoscale behavior for ax.axline · Issue #16264 · matplotlib/matplotlib
Description: From #15330 (comment) I've come across two use-cases where this scaling behavior is undesirable: I'm plotting a line with a single special point (eg, a ray, and I'm ok with the backwards portion of the line). If I plot (origin, origin + ...
Open Graph Description: From #15330 (comment) I've come across two use-cases where this scaling behavior is undesirable: I'm plotting a line with a single special point (eg, a ray, and I'm ok with the backwards portion of...
X Description: From #15330 (comment) I've come across two use-cases where this scaling behavior is undesirable: I'm plotting a line with a single special point (eg, a ray, and I'm ok with the backward...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adjust autoscale behavior for ax.axline","articleBody":"From https://github.com/matplotlib/matplotlib/pull/15330#discussion_r367503354\r\n\r\n\r\nI've come across two use-cases where this scaling behavior is undesirable:\r\n* I'm plotting a line with a single special point (eg, a ray, and I'm ok with the backwards portion of the line). If I plot `(origin, origin + direction)`, then my axis bounds scale to meet `origin + direction`, even though that point is arbitrary. I can work around that with a hack like `(origin, origin + eps*direction)`, but it forces me to trade off axis scaling against precision.\r\n\r\n* I'm plotting a true infinite line, with no special points. Perhaps ideally I'd get axis scaling that shows the \"nearest\" part of the line, but I'd be ok with just passing `autoscale=False` to `axline` to have it skip this step.\r\n\r\n_Originally posted by @eric-wieser in https://github.com/matplotlib/matplotlib/pull/15330_","author":{"url":"https://github.com/eric-wieser","@type":"Person","name":"eric-wieser"},"datePublished":"2020-01-19T13:10:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16264/matplotlib/issues/16264"}
| 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:0f13082f-130a-3961-2df2-0aed11ee92d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2DA:9EB2A:4B596:66092:6A5231F4 |
| html-safe-nonce | f91e5d470417deed20e1467e92d5a3e8c12125b7ca968d1c0911127428f69e99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkRBOjlFQjJBOjRCNTk2OjY2MDkyOjZBNTIzMUY0IiwidmlzaXRvcl9pZCI6IjMxODgxNjE4MDA4MDA5NTczMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 942c6bce452924ad0a9cf6d8cb255bf17c87272d30341ef916486a39f329e368 |
| hovercard-subject-tag | issue:551920032 |
| 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/16264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0023878bd57b9c71bc9055d1b70d5095f762b92d92672a3b52189c49039a2eb4/matplotlib/matplotlib/issues/16264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0023878bd57b9c71bc9055d1b70d5095f762b92d92672a3b52189c49039a2eb4/matplotlib/matplotlib/issues/16264 |
| og:image:alt | From #15330 (comment) I've come across two use-cases where this scaling behavior is undesirable: I'm plotting a line with a single special point (eg, a ray, and I'm ok with the backwards portion of... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eric-wieser |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width