{"action":"created","issue":{"url":"https://api.github.com/repos/d3/d3-scale/issues/14","labels_url":"https://api.github.com/repos/d3/d3-scale/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3-scale/issues/14/comments","events_url":"https://api.github.com/repos/d3/d3-scale/issues/14/events","html_url":"https://github.com/d3/d3-scale/issues/14","id":112684413,"number":14,"title":"Port mpl colormaps?","user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-21T21:36:50Z","updated_at":"2015-10-22T15:56:41Z","closed_at":null,"body":"https://bids.github.io/colormap/\r\n\r\nThe only “problem” is they are defined discretely, rather than continuously. So they might need to be quantize scales?"},"comment":{"url":"https://api.github.com/repos/d3/d3-scale/issues/comments/150270285","html_url":"https://github.com/d3/d3-scale/issues/14#issuecomment-150270285","issue_url":"https://api.github.com/repos/d3/d3-scale/issues/14","id":150270285,"user":{"login":"sjmgarnier","id":371449,"avatar_url":"https://avatars.githubusercontent.com/u/371449?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmgarnier","html_url":"https://github.com/sjmgarnier","followers_url":"https://api.github.com/users/sjmgarnier/followers","following_url":"https://api.github.com/users/sjmgarnier/following{/other_user}","gists_url":"https://api.github.com/users/sjmgarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmgarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmgarnier/subscriptions","organizations_url":"https://api.github.com/users/sjmgarnier/orgs","repos_url":"https://api.github.com/users/sjmgarnier/repos","events_url":"https://api.github.com/users/sjmgarnier/events{/privacy}","received_events_url":"https://api.github.com/users/sjmgarnier/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T15:56:41Z","updated_at":"2015-10-22T15:56:41Z","body":"@mbostock Not D3, but we ported the matplotlib colormaps to R (https://github.com/sjmgarnier/viridis), and used splines to reconstruct continuous scales from the discrete values provided by the matplotlib team. Not sure if it can be done with D3, but this was a cheap and easy (and a bit dirty) solution in R at least. "}}