{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2615","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2615/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2615/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2615/events","html_url":"https://github.com/bokeh/bokeh/issues/2615","id":97218227,"number":2615,"title":"Colors as lists of RGB tuples not working","user":{"login":"tmontes","id":1912206,"avatar_url":"https://avatars.githubusercontent.com/u/1912206?v=3","gravatar_id":"","url":"https://api.github.com/users/tmontes","html_url":"https://github.com/tmontes","followers_url":"https://api.github.com/users/tmontes/followers","following_url":"https://api.github.com/users/tmontes/following{/other_user}","gists_url":"https://api.github.com/users/tmontes/gists{/gist_id}","starred_url":"https://api.github.com/users/tmontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmontes/subscriptions","organizations_url":"https://api.github.com/users/tmontes/orgs","repos_url":"https://api.github.com/users/tmontes/repos","events_url":"https://api.github.com/users/tmontes/events{/privacy}","received_events_url":"https://api.github.com/users/tmontes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-25T11:07:00Z","updated_at":"2015-07-25T11:38:21Z","closed_at":null,"body":"I'm a complete beginner and joined the EuroPython2015 bokeh sprint.\r\nWhile going through the Quickstart I bumped into this while playing around with colors.\r\n\r\nThe script below is a variation of the \"Vectorized colors and sizes\" at http://bokeh.pydata.org/en/latest/docs/quickstart.html. It contains:\r\n* The original colors assignment in the example as a list of \"#rrggbb\" strings: this works fine.\r\n* A variation with colors built as a list of CSS color name strings: this works fine.\r\n* A variation with colors built as a list of RGB tuples: **this fails**.\r\n\r\nI used these declarations commenting/uncommenting them out while experimenting and I also have a ``colors = colors[0]`` to have all the circles colored the same: **this works in all the above cases**.\r\n\r\n```\r\nimport numpy as np\r\nfrom bokeh.plotting import figure, output_file, show\r\n\r\n\r\nN = 4000\r\nx = np.random.random(size=N) * 100\r\ny = np.random.random(size=N) * 100\r\nradii = np.random.random(size=N) * 2\r\n\r\n\r\n# COLORS as in the original example\r\ncolors = [\r\n\t\"#%02x%02x%02x\" % (r, g, 150) for r, g in zip(np.floor(50+2*x), np.floor(30+2*y))\r\n]\r\n\r\n# COLORS as strings with CSS colours\r\ncolors = [\"orange\", \"pink\"] * (N/2)\r\n\r\n# COLORS as RGB tuples\r\ncolors = [(10, 200, 10), (200, 10, 200)] * (N/2)\r\n\r\n# Use the same color all around!\r\n# colors = colors[0]\r\n\r\n\r\noutput_file(\"color_scatter.html\")\r\n\r\np = figure(x_range=(0,100), y_range=(0,100))\r\np.circle(x,y, radius=radii, fill_color=colors, fill_alpha=0.6, line_color=None)\r\n\r\nshow(p)\r\n```\r\n\r\nThis seems to be the 3rd problem that Patrik Stas identified here: https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/BVAPlqMyI1Y but it seems no issue was filed here.\r\n\r\nI'd love to be able to fix this but, as I mentioned, I am a bokeh newbie and wouldn't even know where to start.\r\nPS: Thanks for a great project! :)"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/124836198","html_url":"https://github.com/bokeh/bokeh/issues/2615#issuecomment-124836198","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2615","id":124836198,"user":{"login":"birdsarah","id":1796208,"avatar_url":"https://avatars.githubusercontent.com/u/1796208?v=3","gravatar_id":"","url":"https://api.github.com/users/birdsarah","html_url":"https://github.com/birdsarah","followers_url":"https://api.github.com/users/birdsarah/followers","following_url":"https://api.github.com/users/birdsarah/following{/other_user}","gists_url":"https://api.github.com/users/birdsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/birdsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdsarah/subscriptions","organizations_url":"https://api.github.com/users/birdsarah/orgs","repos_url":"https://api.github.com/users/birdsarah/repos","events_url":"https://api.github.com/users/birdsarah/events{/privacy}","received_events_url":"https://api.github.com/users/birdsarah/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T11:38:21Z","updated_at":"2015-07-25T11:38:21Z","body":"This also seems to be a problem when you pass a list of tuples in a ColumnDataSource."}}