{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6802","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6802/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6802/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6802/events","html_url":"https://github.com/matplotlib/matplotlib/issues/6802","id":166415767,"number":6802,"title":"Discrete scatter?","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/categorical","name":"categorical","color":"FF0080"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12","html_url":"https://github.com/matplotlib/matplotlib/milestones/2.1%20(next%20point%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12/labels","id":534144,"number":12,"title":"2.1 (next point release)","description":"Next feature release.\r\n\r\nBig ticket items:\r\n\r\n - MEP 22/27\r\n - traitlets","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":522,"closed_issues":429,"state":"open","created_at":"2014-01-13T03:21:09Z","updated_at":"2016-07-22T04:33:12Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-07-19T19:37:11Z","updated_at":"2016-07-22T17:12:14Z","closed_at":null,"body":"Hey.\r\nSo I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter is not entirely equipped for this, because it doesn't really allow me to create the legend that I want, and I doesn't allow me to use cyclers on the symbols or color.\r\nWhat I want can be relatively trivially implemented as a for-loop over the unique values of the discrete variable, and calling plot once for each.\r\nI use this A LOT, and other data sciency folks, too, I think, so it would be nice to have a one-liner for this, i.e. implement a function that does that for you.\r\n\r\nMy question is:\r\nShould this go into matplotlib or somewhere else?\r\nIf it should go into matplotlib, should it go into scatter or into a new function?\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/234601076","html_url":"https://github.com/matplotlib/matplotlib/issues/6802#issuecomment-234601076","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6802","id":234601076,"user":{"login":"story645","id":1300499,"avatar_url":"https://avatars.githubusercontent.com/u/1300499?v=3","gravatar_id":"","url":"https://api.github.com/users/story645","html_url":"https://github.com/story645","followers_url":"https://api.github.com/users/story645/followers","following_url":"https://api.github.com/users/story645/following{/other_user}","gists_url":"https://api.github.com/users/story645/gists{/gist_id}","starred_url":"https://api.github.com/users/story645/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/story645/subscriptions","organizations_url":"https://api.github.com/users/story645/orgs","repos_url":"https://api.github.com/users/story645/repos","events_url":"https://api.github.com/users/story645/events{/privacy}","received_events_url":"https://api.github.com/users/story645/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T17:12:14Z","updated_at":"2016-07-22T17:12:14Z","body":"It's written on top of mpl/takes an mpl axis, so you can always mix and match as needed. "}}
{"actor":{"display_login":"story645"}}