{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/748","repository_url":"https://api.github.com/repos/ioam/holoviews","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/748/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/748/events","html_url":"https://github.com/ioam/holoviews/pull/748","id":163379973,"number":748,"title":"Disable automatic coloring and sizing on Points","user":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ioam/holoviews/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-07-01T11:51:36Z","updated_at":"2016-09-22T17:26:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ioam/holoviews/pulls/748","html_url":"https://github.com/ioam/holoviews/pull/748","diff_url":"https://github.com/ioam/holoviews/pull/748.diff","patch_url":"https://github.com/ioam/holoviews/pull/748.patch"},"body":"This is a continuing source of confusion and I'm suggesting we disable the ``color_index`` and ``size_index`` on Points by default. Having it magically map your variables to colors or scaling the points is often weird and undesired until you have actually requested it. We should also define a default colormap for Points in both backends so that if you do set a color_index it is actually applied in both cases (matplotlib would just fall back to the default cmap before). I'd be open to enabling the ``color_index`` by default but sizing can have very unpredictable behavior and should not just happen automatically.\r\n\r\nDiscussion needed."},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/248970677","html_url":"https://github.com/ioam/holoviews/pull/748#issuecomment-248970677","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/748","id":248970677,"user":{"login":"redst4r","id":5718498,"avatar_url":"https://avatars.githubusercontent.com/u/5718498?v=3","gravatar_id":"","url":"https://api.github.com/users/redst4r","html_url":"https://github.com/redst4r","followers_url":"https://api.github.com/users/redst4r/followers","following_url":"https://api.github.com/users/redst4r/following{/other_user}","gists_url":"https://api.github.com/users/redst4r/gists{/gist_id}","starred_url":"https://api.github.com/users/redst4r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redst4r/subscriptions","organizations_url":"https://api.github.com/users/redst4r/orgs","repos_url":"https://api.github.com/users/redst4r/repos","events_url":"https://api.github.com/users/redst4r/events{/privacy}","received_events_url":"https://api.github.com/users/redst4r/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T17:26:28Z","updated_at":"2016-09-22T17:26:28Z","body":"+1 for setting a default colormap in bokeh. \r\nIt was quite confusing for me that the following wont show colored circles in bokeh, while it worked fine in matplotlib:\r\n```python\r\n%%opts Points [color_index=2 size_index=3 scaling_factor=50]\r\ndata = np.random.rand(100,4)\r\npoints = hv.Points(data, vdims=['z', 'alpha'])\r\n```\r\n\r\nworks in bokeh when explicitly specifying a colormap. But this took me a while to figure out... (I thought the bokeh backend is somehow broken here...)\r\n```python\r\n%%opts Points [color_index=2 size_index=3 scaling_factor=50] (cmap='jet')\r\n```\r\n\r\n"}}
{"actor":{"display_login":"redst4r"}}