{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5253","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5253/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5253/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5253/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5253","id":111783753,"number":5253,"title":"abline() - for drawing arbitrary lines on a plot, given specifications.","user":{"login":"naught101","id":167164,"avatar_url":"https://avatars.githubusercontent.com/u/167164?v=3","gravatar_id":"","url":"https://api.github.com/users/naught101","html_url":"https://github.com/naught101","followers_url":"https://api.github.com/users/naught101/followers","following_url":"https://api.github.com/users/naught101/following{/other_user}","gists_url":"https://api.github.com/users/naught101/gists{/gist_id}","starred_url":"https://api.github.com/users/naught101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naught101/subscriptions","organizations_url":"https://api.github.com/users/naught101/orgs","repos_url":"https://api.github.com/users/naught101/repos","events_url":"https://api.github.com/users/naught101/events{/privacy}","received_events_url":"https://api.github.com/users/naught101/received_events","type":"User","site_admin":false},"labels":[{"id":115014,"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/wishlist","name":"wishlist","color":"02d7e1","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15","html_url":"https://github.com/matplotlib/matplotlib/milestones/unassigned","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15/labels","id":719140,"number":15,"title":"unassigned","description":null,"creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":109,"closed_issues":145,"state":"open","created_at":"2014-07-12T20:04:20Z","updated_at":"2016-11-16T21:00:39Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-10-16T08:14:35Z","updated_at":"2016-11-23T20:30:17Z","closed_at":null,"body":"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"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/262622895","html_url":"https://github.com/matplotlib/matplotlib/issues/5253#issuecomment-262622895","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5253","id":262622895,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T20:30:17Z","updated_at":"2016-11-23T20:30:17Z","body":"There are some issues with those details (like it should not be adding it's self to an axes or touching `pyplot` in the `__init__`) and it probably should also over-ride `draw` so that the `draw_artist` is not needed.\r\n\r\nThere should also be some discussion about how this should interact with non-linear scales on the axes.  Only taking points at the edges will result in a 'linear on the screen' line independent of the scales."}}
{"actor":{"display_login":"tacaswell"}}