{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2592","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2592/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2592/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2592/events","html_url":"https://github.com/bokeh/bokeh/issues/2592","id":96038232,"number":2592,"title":"charts.Scatter doesn't handle unequal-length input","user":{"login":"TorbjornT","id":3189311,"avatar_url":"https://avatars.githubusercontent.com/u/3189311?v=3","gravatar_id":"","url":"https://api.github.com/users/TorbjornT","html_url":"https://github.com/TorbjornT","followers_url":"https://api.github.com/users/TorbjornT/followers","following_url":"https://api.github.com/users/TorbjornT/following{/other_user}","gists_url":"https://api.github.com/users/TorbjornT/gists{/gist_id}","starred_url":"https://api.github.com/users/TorbjornT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorbjornT/subscriptions","organizations_url":"https://api.github.com/users/TorbjornT/orgs","repos_url":"https://api.github.com/users/TorbjornT/repos","events_url":"https://api.github.com/users/TorbjornT/events{/privacy}","received_events_url":"https://api.github.com/users/TorbjornT/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/tag:%20charts","name":"tag: charts","color":"D0CBB8"},{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942"}],"state":"open","locked":false,"assignee":{"login":"rothnic","id":452052,"avatar_url":"https://avatars.githubusercontent.com/u/452052?v=3","gravatar_id":"","url":"https://api.github.com/users/rothnic","html_url":"https://github.com/rothnic","followers_url":"https://api.github.com/users/rothnic/followers","following_url":"https://api.github.com/users/rothnic/following{/other_user}","gists_url":"https://api.github.com/users/rothnic/gists{/gist_id}","starred_url":"https://api.github.com/users/rothnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothnic/subscriptions","organizations_url":"https://api.github.com/users/rothnic/orgs","repos_url":"https://api.github.com/users/rothnic/repos","events_url":"https://api.github.com/users/rothnic/events{/privacy}","received_events_url":"https://api.github.com/users/rothnic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/22","html_url":"https://github.com/bokeh/bokeh/milestones/0.11.0","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/22/labels","id":1320524,"number":22,"title":"0.11.0","description":"","creator":{"login":"mattpap","id":27475,"avatar_url":"https://avatars.githubusercontent.com/u/27475?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpap","html_url":"https://github.com/mattpap","followers_url":"https://api.github.com/users/mattpap/followers","following_url":"https://api.github.com/users/mattpap/following{/other_user}","gists_url":"https://api.github.com/users/mattpap/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpap/subscriptions","organizations_url":"https://api.github.com/users/mattpap/orgs","repos_url":"https://api.github.com/users/mattpap/repos","events_url":"https://api.github.com/users/mattpap/events{/privacy}","received_events_url":"https://api.github.com/users/mattpap/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":364,"state":"open","created_at":"2015-09-23T15:04:43Z","updated_at":"2015-12-30T23:09:57Z","due_on":"2015-12-31T06:00:00Z","closed_at":null},"comments":9,"created_at":"2015-07-20T10:46:47Z","updated_at":"2015-12-30T23:37:46Z","closed_at":null,"body":"An example illustrates this:\r\n\r\n    from collections import OrderedDict\r\n    from bokeh.charts import Scatter\r\n    from bokeh.plotting import show, output_file\r\n\r\n    output_file('demo.html')\r\n    data = OrderedDict([\r\n        ('a',[[1,1]]),\r\n        ('b',[[2,2], [3,3]]),\r\n        ('c',[[4,4], [5,5], [6,6]])\r\n        ])\r\n    scatter = Scatter(data,xlabel='x',ylabel='y',legend='top_left')\r\n    show(scatter)\r\n\r\nThe resulting scatter plot will only show the first point of `b` and `c`. Hence the plot shows three points, (1,1), (2,2) and (4,4) instead of six points, as one might expect:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3189311/8774186/bcec90b6-2edb-11e5-928f-ba0683328d29.png)\r\n \r\n\r\n\r\nThe same thing occurs when passing a pandas `DataFrame().groupby()` object as input.  I can work around it easily enough by adding NaN entries at the end of the shorter vectors, but it would be nice if it just worked.\r\n\r\nI'm running `bokeh` 0.9.1.  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/168095739","html_url":"https://github.com/bokeh/bokeh/issues/2592#issuecomment-168095739","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2592","id":168095739,"user":{"login":"fpliger","id":1084690,"avatar_url":"https://avatars.githubusercontent.com/u/1084690?v=3","gravatar_id":"","url":"https://api.github.com/users/fpliger","html_url":"https://github.com/fpliger","followers_url":"https://api.github.com/users/fpliger/followers","following_url":"https://api.github.com/users/fpliger/following{/other_user}","gists_url":"https://api.github.com/users/fpliger/gists{/gist_id}","starred_url":"https://api.github.com/users/fpliger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpliger/subscriptions","organizations_url":"https://api.github.com/users/fpliger/orgs","repos_url":"https://api.github.com/users/fpliger/repos","events_url":"https://api.github.com/users/fpliger/events{/privacy}","received_events_url":"https://api.github.com/users/fpliger/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T23:37:46Z","updated_at":"2015-12-30T23:37:46Z","body":"@rothnic I don't think we should support either options (`1.` keys are the indices and the values are x, y positions and `2.` input is a groupby object).. at least for now... at least until we have a stable iteration of the `charts` API. (imo it's worth keeping this discussion on a different dedicated issue)\r\n\r\nWhat I think we should support (that is related to this issue) is the use case of users providing data that has iterables that are not of the same lenght.. Consider this example:\r\n\r\n```Python\r\ndata = dict(\r\n            stamp=[.33, .33, .34, .37, .37, .37],\r\n            postcard=[.20, .20, .21, .23],\r\n)\r\n\r\n# create a line chart where each column of measures receives a unique color and dash style\r\nline = Step(data, y=['stamp', 'postcard'],\r\n            dash=['stamp', 'postcard'],\r\n            color=['stamp', 'postcard'],\r\n            title=\"U.S. Postage Rates (1999-2015)\", ylabel='Rate per ounce', legend=True)\r\n```\r\n\r\nThis should be supported on basically on all charts.."}}