{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2525","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2525/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2525/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2525/events","html_url":"https://github.com/bokeh/bokeh/issues/2525","id":93573322,"number":2525,"title":"Setting glyph color to None results in an array of NaN's","user":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/tag:%20bokehjs","name":"tag: bokehjs","color":"D0CBB8"},{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942"}],"state":"open","locked":false,"assignee":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/11","html_url":"https://github.com/bokeh/bokeh/milestones/short-term","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/11/labels","id":811343,"number":11,"title":"short-term","description":"Collects issues that need to be resolved soon, but not before the next release.\r\nThis milestone is always open and it gets populated from the either the long-term milestone or from new (unmilestoned) issues.\r\n\r\nRef: https://github.com/ContinuumIO/bokeh/wiki/BEP-1:-Issues-and-PRs-management#issue-times","creator":{"login":"damianavila","id":1640669,"avatar_url":"https://avatars.githubusercontent.com/u/1640669?v=3","gravatar_id":"","url":"https://api.github.com/users/damianavila","html_url":"https://github.com/damianavila","followers_url":"https://api.github.com/users/damianavila/followers","following_url":"https://api.github.com/users/damianavila/following{/other_user}","gists_url":"https://api.github.com/users/damianavila/gists{/gist_id}","starred_url":"https://api.github.com/users/damianavila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianavila/subscriptions","organizations_url":"https://api.github.com/users/damianavila/orgs","repos_url":"https://api.github.com/users/damianavila/repos","events_url":"https://api.github.com/users/damianavila/events{/privacy}","received_events_url":"https://api.github.com/users/damianavila/received_events","type":"User","site_admin":false},"open_issues":249,"closed_issues":32,"state":"open","created_at":"2014-10-02T12:30:03Z","updated_at":"2015-07-09T21:15:55Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-07-07T16:31:12Z","updated_at":"2015-07-10T00:24:35Z","closed_at":null,"body":"In the example `file/color_scatter.py` we do:\r\n```python\r\np.scatter(x,y, radius=radii, fill_color=colors, fill_alpha=0.6, line_color=None)\r\n```\r\nInspecting in JS:\r\n```\r\n> g.visuals.line.color.fixed_value\r\nnull\r\n> g.visuals.line.cache.color_array\r\nArray [ NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, 3990 more… ]\r\n```\r\n\r\nWhich can be understood from the source in properties.coffee:\r\n```coffeescript\r\nwarm_cache: (source, attrs) ->\r\n    for attr in attrs\r\n      prop = @[attr]\r\n      if prop.fixed_value?\r\n        @cache[attr] = prop.fixed_value\r\n      else\r\n        @cache[attr+\"_array\"] = prop.array(source)\r\n```\r\n\r\n\r\nWhat would be the correct way to denote \"no coloring\"? Can we reserve `null` for that and change `properties.coffee` to: `if prop.fixed_value == undefined`?"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/120180506","html_url":"https://github.com/bokeh/bokeh/issues/2525#issuecomment-120180506","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2525","id":120180506,"user":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T00:24:35Z","updated_at":"2015-07-10T00:24:35Z","body":"@bryevdv can you please help put together a test for this use-case? I've been trying to add something to `test_properties.coffee`, but I fail to get a `ContextProperties` instance to work with."}}