Skip to content

Instantly share code, notes, and snippets.

@mwaskom
Created September 8, 2020 18:47
Show Gist options
  • Save mwaskom/bf31086a13359a822fca68a1c7fd5f5b to your computer and use it in GitHub Desktop.
Save mwaskom/bf31086a13359a822fca68a1c7fd5f5b to your computer and use it in GitHub Desktop.
Perceptually-uniform colormaps for scatter and line plots
{
"content-type": "application/vnd.matplotlib.colormap-v1+json",
"name": "new cm",
"license": "http://creativecommons.org/publicdomain/zero/1.0/",
"usage-hints": [
"red-green-colorblind-safe",
"greyscale-safe",
"sequential"
],
"colorspace": "sRGB",
"domain": "continuous",
"colors": "2c31722c31722c32722c33732c34732c35732c35742b36742b37742b38752b38752b39752b3a762b3b762a3b762a3c772a3d772a3d782a3e782a3f7829407929407929417a29427a28427a28437b28447b28457c27457c27467c27477d27477d26487e26497e26497e254a7f254b7f254c7f254c80244d80244e80244e81234f812350812350822251822252822252832253832154832155832155842056842057842057842058851f59851f59851f5a851f5b861e5b861e5c861e5d861e5d861e5e871d5f871d5f871d60871d61871d61881d62881d63881c63881c64881c64881c65891c66891c66891c67891c68891c68891c69891d6a8a1d6a8a1d6b8a1d6c8a1d6c8a1e6d8a1e6d8a1e6e8a1e6f8a1f6f8a1f708b20718b20718b20728b21728b21738b22748b22748b23758b23758b24768b24778b25778c25788c26788c27798c277a8c287a8c287b8c297b8c2a7c8c2a7d8c2b7d8c2c7e8c2c7e8c2d7f8c2d808c2e808d2f818d2f818d30828d31828d31838d32848d33848d33858d34858d35868d35878d36878d37888d37888e38898e388a8e398a8e3a8b8e3a8b8e3b8c8e3c8c8e3c8d8e3d8e8e3e8e8e3e8f8e3f8f8e40908e40918f41918f41928f42928f43938f43948f44948f45958f45958f46968f47978f47978f48988f49988f49998f4a9a8f4b9a8f4b9b904c9b904d9c904e9d904e9d904f9e90509e90509f90519f9052a09053a19053a19054a29055a29056a39057a49057a49058a59059a5905aa6905ba6905ba7905ca8905da8905ea9905fa99060aa9061aa9062ab9062ac9063ac9064ad9065ad9066ae9067ae9068af9069b0906ab0906bb1906cb1906db2906eb2906fb39070b39071b49072b49073b59074b69075b69076b79177b79178b89179b8917bb9917cb9917dba917eba917fbb9180bb9181bc9182bc9184bd9185bd9186be9187be9188bf9189bf918ac0918bc1918dc1918ec2918fc29190c39191c39192c49193c49194c59195c59196c69198c69199c7919ac7919bc8919cc8919dc9919eca919fca91a0cb91a2cb91a3cc91a4cc90a5cd90",
"extensions": {
"https://matplotlib.org/viscm": {
"min_Jp": 25,
"max_Jp": 80,
"xp": [
-0.2814600052804934,
-10.14501417263213,
-17.26869218238609,
-20.282555955743533,
-12.884890330229794
],
"yp": [
-23.18757192174914,
-21.269658611430764,
-13.598005370157274,
3.11523919118855,
13.526768590059717
],
"fixed": -1,
"filter_k": 100,
"cmtype": "linear",
"uniform_colorspace": "CAM02-UCS",
"spline_method": "CatmulClark"
}
}
}
{
"content-type": "application/vnd.matplotlib.colormap-v1+json",
"name": "new cm",
"license": "http://creativecommons.org/publicdomain/zero/1.0/",
"usage-hints": [
"red-green-colorblind-safe",
"greyscale-safe",
"sequential"
],
"colorspace": "sRGB",
"domain": "continuous",
"colors": "4b23624c23624d24634e24634f24634f24635025645125645225645326655426655526655626665727665827665827665927675a27675b28675c28685d28685e28685f296960296961296962296a63296a642a6a642a6a652a6b662a6b672a6b682a6c692b6c6a2b6c6b2b6c6c2b6d6d2b6d6e2c6d6f2c6d702c6e712c6e722c6e732c6e742d6e752d6f752d6f762d6f772d6f782e6f792e6f7a2e707b2e707c2e707d2e707e2f707f2f70802f70812f70822f708330708430718530718630718731718731718831718931718a31718b32718c32718d32718e32718f33719033719133719233719334719434719434709534709635709735709835709935709a36709b36709c36709d36709e37709f376fa0376fa1376fa1386fa2386fa3386fa4386fa5396ea6396ea7396ea8396ea93a6eaa3a6eab3a6dac3a6dad3b6dae3b6daf3b6db03b6db13c6cb13c6cb23c6cb33c6cb43d6bb53d6bb63d6bb73d6bb83e6bb93e6aba3e6abb3f6abc3f69bd3f69be3f69bf4069c04068c14068c14168c24167c34167c44267c54266c64366c74366c84365c84465c94465ca4564cb4564cc4664cc4663cd4763ce4763cf4862d04962d04962d14a61d24a61d24b60d34c60d44c60d44d60d54e5fd64f5fd64f5fd7505ed7515ed8525ed9525ed9535dda545dda555ddb565ddb565ddc575cdc585cdd595cdd5a5cde5b5cde5c5cde5d5cdf5e5cdf5f5ce05f5ce0605ce0615ce1625ce1635ce1645ce2655ce2665ce2675ce3685ce3695de36a5de36b5de46c5de46d5de46e5ee46f5ee5705ee5715ee5725fe5735fe5745fe67560e67660e67760e67861e67961e77a62e77b62e77c63e77d63e77e63e87f64e88064e88165e88265e88366e88466e88567e98667e98768e98868e98969e98a6ae98b6ae98c6be98d6bea8e6cea8f6cea906dea916eea926eea936fea946fea9570ea9671eb9771eb9872eb9972eb9973eb9a73eb9b74eb9c75eb9d75eb9e76ec9f76eca077eca178eca278eca379eca479eca57aeca67beca77beca87ceca97cecaa7dedab7eedac7eedad7fedae7fedaf80edb081",
"extensions": {
"https://matplotlib.org/viscm": {
"min_Jp": 25,
"max_Jp": 80,
"xp": [
13.417920782707895,
22.73349971853999,
27.6652768022158,
31.775091038612317,
25.74736349189743,
9.856081777830909
],
"yp": [
-17.159844375034254,
-11.406104444079133,
-4.282426434325174,
6.677078196065537,
14.622719053098791,
15.4446819003781
],
"fixed": -1,
"filter_k": 100,
"cmtype": "linear",
"uniform_colorspace": "CAM02-UCS",
"spline_method": "CatmulClark"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment