{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/3056","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/3056/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/3056/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/3056/events","html_url":"https://github.com/bokeh/bokeh/issues/3056","id":114734711,"number":3056,"title":"Manually set color shading levels in adjacency matrix?","user":{"login":"levithatcher","id":2396979,"avatar_url":"https://avatars.githubusercontent.com/u/2396979?v=3","gravatar_id":"","url":"https://api.github.com/users/levithatcher","html_url":"https://github.com/levithatcher","followers_url":"https://api.github.com/users/levithatcher/followers","following_url":"https://api.github.com/users/levithatcher/following{/other_user}","gists_url":"https://api.github.com/users/levithatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/levithatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levithatcher/subscriptions","organizations_url":"https://api.github.com/users/levithatcher/orgs","repos_url":"https://api.github.com/users/levithatcher/repos","events_url":"https://api.github.com/users/levithatcher/events{/privacy}","received_events_url":"https://api.github.com/users/levithatcher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20discussion","name":"type: discussion","color":"2659A0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-03T03:15:54Z","updated_at":"2015-11-03T04:25:13Z","closed_at":null,"body":"In the Les Mis adjacency matrix example, shading is handled by alpha values from 0 to 1, see below. But what if one wanted all the shades to span from alpha values of 0.8 to 1.0 instead of (the default) being evenly distributed from 0 to 1? In other words, how can one manually set the alphas' shade levels?\r\n\r\nThanks!\r\n\r\nhttp://bokeh.pydata.org/en/latest/docs/gallery/les_mis.html\r\n```\r\nsource = ColumnDataSource(\r\n    data=dict(\r\n        xname=xname,\r\n        yname=yname,\r\n        colors=color,\r\n        alphas=alpha,\r\n        count=counts.flatten(),\r\n))\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/153235444","html_url":"https://github.com/bokeh/bokeh/issues/3056#issuecomment-153235444","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/3056","id":153235444,"user":{"login":"levithatcher","id":2396979,"avatar_url":"https://avatars.githubusercontent.com/u/2396979?v=3","gravatar_id":"","url":"https://api.github.com/users/levithatcher","html_url":"https://github.com/levithatcher","followers_url":"https://api.github.com/users/levithatcher/followers","following_url":"https://api.github.com/users/levithatcher/following{/other_user}","gists_url":"https://api.github.com/users/levithatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/levithatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levithatcher/subscriptions","organizations_url":"https://api.github.com/users/levithatcher/orgs","repos_url":"https://api.github.com/users/levithatcher/repos","events_url":"https://api.github.com/users/levithatcher/events{/privacy}","received_events_url":"https://api.github.com/users/levithatcher/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T04:25:13Z","updated_at":"2015-11-03T04:25:13Z","body":"Thanks for the quick response! Sorry for not being more clear--I see that the values for alpha are being manually set, but the color shades appear to break at fixed values of alpha (ie, at .2, .4, .6, .8, etc). How can I set the tell the shades to switch at (say) .5, .75, etc? Thanks!"}}