{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/2698","repository_url":"https://api.github.com/repos/ioam/holoviews","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/2698/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/2698/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/2698/events","html_url":"https://github.com/ioam/holoviews/issues/2698","id":324598964,"number":2698,"title":"Styling individual elements in a GridMatrix is ignored by datashade operation","user":{"login":"suyang-nju","id":35547836,"avatar_url":"https://avatars2.githubusercontent.com/u/35547836?v=4","gravatar_id":"","url":"https://api.github.com/users/suyang-nju","html_url":"https://github.com/suyang-nju","followers_url":"https://api.github.com/users/suyang-nju/followers","following_url":"https://api.github.com/users/suyang-nju/following{/other_user}","gists_url":"https://api.github.com/users/suyang-nju/gists{/gist_id}","starred_url":"https://api.github.com/users/suyang-nju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyang-nju/subscriptions","organizations_url":"https://api.github.com/users/suyang-nju/orgs","repos_url":"https://api.github.com/users/suyang-nju/repos","events_url":"https://api.github.com/users/suyang-nju/events{/privacy}","received_events_url":"https://api.github.com/users/suyang-nju/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-19T04:08:24Z","updated_at":"2018-05-22T19:10:22Z","closed_at":"2018-05-22T13:46:13Z","author_association":"NONE","body":"The following code tries to set the background and frame colors of one plot in a GridMatrix:\r\n\r\n    def modify_frame(plot, element):\r\n        print('modify_frame')\r\n        plot.state.outline_line_color = 'blue'\r\n\r\n    some_dataset = hv.Dataset(np.random.normal(size=(10000, 3)), [chr(65+i)+'_dimension' for i in range(3)])\r\n    gd = gridmatrix(some_dataset)\r\n    gd['A_dimension', 'B_dimension'].options(finalize_hooks=[modify_frame], bgcolor='lightyellow', clone=False)\r\n    gd.map(datashade, hv.Scatter)\r\n\r\nbut there's no color changes, and no output from the `print()` in `modify_frame`. It seemed that `modify_frame` was not called. If the last line was `gd` or `gd.map(decimate, hv.Scatter)`, the code worked as expected. Somehow `datashade` 'eats' the options?\r\n"},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/391107168","html_url":"https://github.com/ioam/holoviews/issues/2698#issuecomment-391107168","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/2698","id":391107168,"user":{"login":"suyang-nju","id":35547836,"avatar_url":"https://avatars2.githubusercontent.com/u/35547836?v=4","gravatar_id":"","url":"https://api.github.com/users/suyang-nju","html_url":"https://github.com/suyang-nju","followers_url":"https://api.github.com/users/suyang-nju/followers","following_url":"https://api.github.com/users/suyang-nju/following{/other_user}","gists_url":"https://api.github.com/users/suyang-nju/gists{/gist_id}","starred_url":"https://api.github.com/users/suyang-nju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyang-nju/subscriptions","organizations_url":"https://api.github.com/users/suyang-nju/orgs","repos_url":"https://api.github.com/users/suyang-nju/repos","events_url":"https://api.github.com/users/suyang-nju/events{/privacy}","received_events_url":"https://api.github.com/users/suyang-nju/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T19:10:22Z","updated_at":"2018-05-22T19:10:22Z","author_association":"NONE","body":"@philippjfr Applying the plot options after datashading still has no effect:\r\n```\r\ngd = hv.operation.gridmatrix(some_dataset).map(hd.datashade, hv.Scatter)\r\ngd['A_dimension', 'B_dimension'].options(finalize_hooks=[modify_frame], bgcolor='lightyellow', clone=False)\r\ngd\r\n```\r\n\r\nInterestingly, the plot options are set and can be seen if only that plot is shown:\r\n```\r\ngd['A_dimension', 'B_dimension'].options(finalize_hooks=[modify_frame], bgcolor='lightyellow', clone=False)\r\n```\r\nwill show a plot with lightyellow background and blue frame. But when the plot is shown together with other plots in a GridMatrix with `gd`, the plot options are lost.\r\n\r\n![bokeh_plot](https://user-images.githubusercontent.com/35547836/40384639-27fe9aac-5dd2-11e8-9e95-dcc6f6924317.png)\r\n"}}
{"actor":{"display_login":"suyang-nju"}}