{"action":"created","issue":{"url":"https://api.github.com/repos/vispy/vispy/issues/1448","repository_url":"https://api.github.com/repos/vispy/vispy","labels_url":"https://api.github.com/repos/vispy/vispy/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/vispy/vispy/issues/1448/comments","events_url":"https://api.github.com/repos/vispy/vispy/issues/1448/events","html_url":"https://github.com/vispy/vispy/issues/1448","id":305234681,"number":1448,"title":"Line colors","user":{"login":"iberinsk","id":22728036,"avatar_url":"https://avatars2.githubusercontent.com/u/22728036?v=4","gravatar_id":"","url":"https://api.github.com/users/iberinsk","html_url":"https://github.com/iberinsk","followers_url":"https://api.github.com/users/iberinsk/followers","following_url":"https://api.github.com/users/iberinsk/following{/other_user}","gists_url":"https://api.github.com/users/iberinsk/gists{/gist_id}","starred_url":"https://api.github.com/users/iberinsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iberinsk/subscriptions","organizations_url":"https://api.github.com/users/iberinsk/orgs","repos_url":"https://api.github.com/users/iberinsk/repos","events_url":"https://api.github.com/users/iberinsk/events{/privacy}","received_events_url":"https://api.github.com/users/iberinsk/received_events","type":"User","site_admin":false},"labels":[{"id":32867564,"url":"https://api.github.com/repos/vispy/vispy/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-14T16:30:14Z","updated_at":"2018-03-14T17:02:42Z","closed_at":null,"author_association":"NONE","body":"Hi! Is it possible to set the array of colors to the array of lines? I have an array of coordinates (pos), an array of connections (pairlist) and the array of colors. An I try to use the following structure: \r\n```\r\nline = scene.visuals.Line(pos=pos, connect=pairlist, width = 3, parent = view.scene)\r\nline.set_data(pos=pos, connect=pairlist, color=colors, width = 3)\r\n```\r\n\r\nBut it does not work. I managed to use a different way:\r\n```\r\nlines = []\r\nfor pair in pairlist:\r\n   ...\r\n    line = scene.visuals.Line(pos=posline, color=color, width = 3, parent = view.scene)\r\n    lines.append(line)\r\n...\r\nfor k in range(len(pairlist)):\r\n        lines[k].set_data(pos=pos[pairlist[k]], color=colors[k], width = 3)\r\n```\r\nbut it works very slow unfortunately. Is it possible to use the 'connect' option with the colors array? "},"comment":{"url":"https://api.github.com/repos/vispy/vispy/issues/comments/373098446","html_url":"https://github.com/vispy/vispy/issues/1448#issuecomment-373098446","issue_url":"https://api.github.com/repos/vispy/vispy/issues/1448","id":373098446,"user":{"login":"iberinsk","id":22728036,"avatar_url":"https://avatars2.githubusercontent.com/u/22728036?v=4","gravatar_id":"","url":"https://api.github.com/users/iberinsk","html_url":"https://github.com/iberinsk","followers_url":"https://api.github.com/users/iberinsk/followers","following_url":"https://api.github.com/users/iberinsk/following{/other_user}","gists_url":"https://api.github.com/users/iberinsk/gists{/gist_id}","starred_url":"https://api.github.com/users/iberinsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iberinsk/subscriptions","organizations_url":"https://api.github.com/users/iberinsk/orgs","repos_url":"https://api.github.com/users/iberinsk/repos","events_url":"https://api.github.com/users/iberinsk/events{/privacy}","received_events_url":"https://api.github.com/users/iberinsk/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T17:02:41Z","updated_at":"2018-03-14T17:02:41Z","author_association":"NONE","body":"An error :(\n\nOn Wed, 14 Mar 2018, 19:00 David Hoese, <notifications@github.com> wrote:\n\n> Do you get an error with your first code block or wrong results?\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/vispy/vispy/issues/1448#issuecomment-373097786>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AVrNZCjKNPMj6NbyX6Mu0FDYH-99CvVaks5teUzJgaJpZM4Sqw0->\n> .\n>\n"}}
{"actor":{"display_login":"iberinsk"}}