Title: abline() - for drawing arbitrary lines on a plot, given specifications. · Issue #5253 · matplotlib/matplotlib · GitHub
Open Graph Title: abline() - for drawing arbitrary lines on a plot, given specifications. · Issue #5253 · matplotlib/matplotlib
X Title: abline() - for drawing arbitrary lines on a plot, given specifications. · Issue #5253 · matplotlib/matplotlib
Description: It would be really nice to have some function that could draw arbitrarily angled straight lines on a graph, along the lines of ggplot's abline for example, these might be ways to draw infinite lines: pl.abline(intercept=0, slope=1) # 1:1...
Open Graph Description: It would be really nice to have some function that could draw arbitrarily angled straight lines on a graph, along the lines of ggplot's abline for example, these might be ways to draw infinite line...
X Description: It would be really nice to have some function that could draw arbitrarily angled straight lines on a graph, along the lines of ggplot's abline for example, these might be ways to draw infinite ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"abline() - for drawing arbitrary lines on a plot, given specifications.","articleBody":"It would be really nice to have some function that could draw arbitrarily angled straight lines on a graph, along the lines of [ggplot's abline](http://docs.ggplot2.org/current/geom_abline.html)\n\nfor example, these might be ways to draw infinite lines:\n\n``` python\npl.abline(intercept=0, slope=1) # 1:1 line from the origin\n\npl. abline(a=[0, 0], b=[1, 1]) # same line as above, using 2 points\n\npl.abline(a=[0, 0], angle=45) # same line again, using 1 point and an angle\n\npl.abline(a=[0, 0], gradient=1) # same line again, using 1 point and the gradient\n```\n\nThese are all infinite lines (they extend to the bounds of the graph, regardless of where their specified points lie).\n\nThere are a few questions on stack overflow indicating how popular this might be, eg:\nhttp://stackoverflow.com/questions/22104256/does-matplotlib-have-a-function-for-drawing-diagonal-lines-in-axis-coordinates \n","author":{"url":"https://github.com/naught101","@type":"Person","name":"naught101"},"datePublished":"2015-10-16T08:14:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/5253/matplotlib/issues/5253"}
| 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:4fb78d1f-089d-370e-efd6-59da16703849 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8230:171A20:3B6895:4F24E5:6A52F0CC |
| html-safe-nonce | 8a252bb09af599a0ee26995b8c4c77b9a1f7e76b955695c7578902758e446c5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjMwOjE3MUEyMDozQjY4OTU6NEYyNEU1OjZBNTJGMENDIiwidmlzaXRvcl9pZCI6IjU0MjY3NDc4OTk2MTc5MzE0NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5cc3801686dac6cda893c7020c6c7d098b2b79a8e3889b17202f2ed9c91cce98 |
| hovercard-subject-tag | issue:111783753 |
| 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/5253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/742117611dee6ced1068ee82b7131a7dd7d3031ebb2626335b69ca7518b471c7/matplotlib/matplotlib/issues/5253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/742117611dee6ced1068ee82b7131a7dd7d3031ebb2626335b69ca7518b471c7/matplotlib/matplotlib/issues/5253 |
| og:image:alt | It would be really nice to have some function that could draw arbitrarily angled straight lines on a graph, along the lines of ggplot's abline for example, these might be ways to draw infinite line... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naught101 |
| 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