{"action":"created","issue":{"url":"https://api.github.com/repos/c42f/displaz/issues/57","labels_url":"https://api.github.com/repos/c42f/displaz/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/c42f/displaz/issues/57/comments","events_url":"https://api.github.com/repos/c42f/displaz/issues/57/events","html_url":"https://github.com/c42f/displaz/pull/57","id":88596572,"number":57,"title":"Plot multiple point clouds with random color with python","user":{"login":"OmriTreidel","id":7875254,"avatar_url":"https://avatars.githubusercontent.com/u/7875254?v=3","gravatar_id":"","url":"https://api.github.com/users/OmriTreidel","html_url":"https://github.com/OmriTreidel","followers_url":"https://api.github.com/users/OmriTreidel/followers","following_url":"https://api.github.com/users/OmriTreidel/following{/other_user}","gists_url":"https://api.github.com/users/OmriTreidel/gists{/gist_id}","starred_url":"https://api.github.com/users/OmriTreidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmriTreidel/subscriptions","organizations_url":"https://api.github.com/users/OmriTreidel/orgs","repos_url":"https://api.github.com/users/OmriTreidel/repos","events_url":"https://api.github.com/users/OmriTreidel/events{/privacy}","received_events_url":"https://api.github.com/users/OmriTreidel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T02:46:16Z","updated_at":"2015-06-16T03:18:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/c42f/displaz/pulls/57","html_url":"https://github.com/c42f/displaz/pull/57","diff_url":"https://github.com/c42f/displaz/pull/57.diff","patch_url":"https://github.com/c42f/displaz/pull/57.patch"},"body":"Additional plotting function in the python binding for plotting multiple point clouds"},"comment":{"url":"https://api.github.com/repos/c42f/displaz/issues/comments/112270686","html_url":"https://github.com/c42f/displaz/pull/57#issuecomment-112270686","issue_url":"https://api.github.com/repos/c42f/displaz/issues/57","id":112270686,"user":{"login":"c42f","id":601473,"avatar_url":"https://avatars.githubusercontent.com/u/601473?v=3","gravatar_id":"","url":"https://api.github.com/users/c42f","html_url":"https://github.com/c42f","followers_url":"https://api.github.com/users/c42f/followers","following_url":"https://api.github.com/users/c42f/following{/other_user}","gists_url":"https://api.github.com/users/c42f/gists{/gist_id}","starred_url":"https://api.github.com/users/c42f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c42f/subscriptions","organizations_url":"https://api.github.com/users/c42f/orgs","repos_url":"https://api.github.com/users/c42f/repos","events_url":"https://api.github.com/users/c42f/events{/privacy}","received_events_url":"https://api.github.com/users/c42f/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T03:18:37Z","updated_at":"2015-06-16T03:18:37Z","body":"Cool, thanks for the pull request :-)  This looks undeniably useful, though I feel a bit unsure about having a new function for this very specific use case.  (The fact that you need a new function is basically my fault for not thinking through the binding API well at all.)\r\n\r\nMaybe it would be better in the medium term to do something like in the C++ binding: make a point list class where it's easy to append points with arbitrary attributes, to be plotted all at once at the end.  The you could build a version of `multi_plot` as a trivial wrapper.  Let's see, how might the usage of such a thing look.\r\n\r\n```python\r\n\r\nposition_list = whatever()\r\n\r\npoints = displaz.PointArray()\r\nfor i, position in enumerate(position_list):\r\n    points.append(position, color=np.random.rand(3), cloud_index=i)\r\ndisplaz.plot(points)\r\n```\r\n\r\nNot too bad I guess?  The attribute `cloud_index` is just there to illustrate how you could add additional attributes onto the point list (attributes which become available in the shader)."}}