Skip to content

Commit

Permalink
Add the araucaria sequential colormap (#64)
Browse files Browse the repository at this point in the history
* Add the `araucaria` sequential colormap

* Fix `contrib/record.json`

Co-authored-by: Talley Lambert <talley.lambert@gmail.com>

---------

Co-authored-by: Talley Lambert <talley.lambert@gmail.com>
  • Loading branch information
apcamargo and tlambert03 authored Jul 23, 2024
1 parent 8bd07a6 commit 15ef977
Show file tree
Hide file tree
Showing 2 changed files with 269 additions and 2 deletions.
259 changes: 259 additions & 0 deletions src/cmap/data/contrib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,262 @@
bad: str Color to show when values are NaN or masked.
"""

araucaria = [
[0.17618555, 0.25404256, 0.47848306],
[0.18065802, 0.25521329, 0.48266492],
[0.18502591, 0.25640259, 0.48681355],
[0.18934882, 0.25758645, 0.49097410],
[0.19363838, 0.25876085, 0.49515386],
[0.19790073, 0.25992396, 0.49935601],
[0.20213644, 0.26107640, 0.50357908],
[0.20635254, 0.26221557, 0.50782766],
[0.21054677, 0.26334333, 0.51209796],
[0.21472612, 0.26445681, 0.51639506],
[0.21888866, 0.26555759, 0.52071564],
[0.22303663, 0.26664509, 0.52506047],
[0.22717252, 0.26771850, 0.52943071],
[0.23129720, 0.26877783, 0.53382600],
[0.23541165, 0.26982299, 0.53824617],
[0.23951838, 0.27085297, 0.54269270],
[0.24362024, 0.27186646, 0.54716762],
[0.24771316, 0.27286619, 0.55166556],
[0.25180317, 0.27384890, 0.55619207],
[0.25588876, 0.27481576, 0.56074464],
[0.25997128, 0.27576621, 0.56532389],
[0.26405166, 0.27669989, 0.56993004],
[0.26813198, 0.27761567, 0.57456470],
[0.27220835, 0.27851626, 0.57922258],
[0.27629809, 0.27939913, 0.58388533],
[0.28043099, 0.28027363, 0.58846049],
[0.28461202, 0.28113812, 0.59294562],
[0.28884151, 0.28199485, 0.59732919],
[0.29310821, 0.28284507, 0.60162462],
[0.29741195, 0.28369084, 0.60582276],
[0.30175115, 0.28453413, 0.60991761],
[0.30611631, 0.28537598, 0.61392152],
[0.31050589, 0.28621817, 0.61782982],
[0.31492090, 0.28706249, 0.62163331],
[0.31935186, 0.28790956, 0.62534710],
[0.32379614, 0.28876045, 0.62897218],
[0.32825579, 0.28961673, 0.63249887],
[0.33272563, 0.29047896, 0.63593535],
[0.33720132, 0.29134770, 0.63928835],
[0.34168121, 0.29222348, 0.64255987],
[0.34616543, 0.29310701, 0.64574777],
[0.35065379, 0.29399885, 0.64885115],
[0.35514143, 0.29489904, 0.65188049],
[0.35962742, 0.29580770, 0.65483823],
[0.36411124, 0.29672477, 0.65772688],
[0.36859128, 0.29765078, 0.66054871],
[0.37306788, 0.29858517, 0.66330640],
[0.37754160, 0.29952872, 0.66599689],
[0.38201093, 0.30048051, 0.66862802],
[0.38647435, 0.30144080, 0.67120306],
[0.39093220, 0.30240908, 0.67372445],
[0.39538440, 0.30338508, 0.67619451],
[0.39983034, 0.30436884, 0.67861550],
[0.40427026, 0.30535992, 0.68098967],
[0.40870431, 0.30635795, 0.68331919],
[0.41313244, 0.30736269, 0.68560617],
[0.41755480, 0.30837376, 0.68785266],
[0.42197130, 0.30939095, 0.69006065],
[0.42638227, 0.31041383, 0.69223206],
[0.43078786, 0.31144205, 0.69436876],
[0.43518831, 0.31247525, 0.69647253],
[0.43958380, 0.31351309, 0.69854511],
[0.44397456, 0.31455521, 0.70058817],
[0.44836074, 0.31560132, 0.70260333],
[0.45274374, 0.31665105, 0.70458944],
[0.45712415, 0.31770403, 0.70654729],
[0.46150100, 0.31875991, 0.70848119],
[0.46587420, 0.31981856, 0.71039261],
[0.47024454, 0.32087935, 0.71228278],
[0.47461252, 0.32194181, 0.71415293],
[0.47897767, 0.32300605, 0.71600443],
[0.48334072, 0.32407149, 0.71783837],
[0.48770481, 0.32513793, 0.71964817],
[0.49206747, 0.32620532, 0.72144081],
[0.49642953, 0.32727265, 0.72321859],
[0.50078996, 0.32834040, 0.72498287],
[0.50515004, 0.32940768, 0.72673432],
[0.50951121, 0.33047457, 0.72846943],
[0.51387479, 0.33154065, 0.73018669],
[0.51823814, 0.33260588, 0.73189368],
[0.52260257, 0.33366938, 0.73359084],
[0.52696689, 0.33473174, 0.73527940],
[0.53133645, 0.33579212, 0.73694875],
[0.53570790, 0.33685037, 0.73860878],
[0.54008057, 0.33790644, 0.74026189],
[0.54445507, 0.33895988, 0.74190859],
[0.54883736, 0.34000946, 0.74353744],
[0.55320641, 0.34107468, 0.74513086],
[0.55757342, 0.34214814, 0.74668740],
[0.56193768, 0.34323100, 0.74820503],
[0.56628505, 0.34433875, 0.74966371],
[0.57062579, 0.34546047, 0.75107811],
[0.57496152, 0.34659519, 0.75244816],
[0.57929002, 0.34774502, 0.75377249],
[0.58360585, 0.34891657, 0.75504158],
[0.58790430, 0.35011459, 0.75625127],
[0.59219312, 0.35133148, 0.75740982],
[0.59647018, 0.35256931, 0.75851597],
[0.60073498, 0.35382921, 0.75956740],
[0.60498477, 0.35511376, 0.76056284],
[0.60920897, 0.35643497, 0.76148717],
[0.61341660, 0.35778303, 0.76235309],
[0.61760571, 0.35915984, 0.76315961],
[0.62177530, 0.36056675, 0.76390506],
[0.62592363, 0.36200549, 0.76458848],
[0.63004904, 0.36347772, 0.76520905],
[0.63414990, 0.36498500, 0.76576607],
[0.63821793, 0.36653633, 0.76624972],
[0.64225819, 0.36812578, 0.76666870],
[0.64626966, 0.36975414, 0.76702341],
[0.65025079, 0.37142272, 0.76731388],
[0.65420007, 0.37313270, 0.76754040],
[0.65811618, 0.37488512, 0.76770323],
[0.66199765, 0.37668097, 0.76780325],
[0.66584318, 0.37852108, 0.76784137],
[0.66965151, 0.38040613, 0.76781888],
[0.67342151, 0.38233667, 0.76773722],
[0.67715218, 0.38431306, 0.76759803],
[0.68083831, 0.38634014, 0.76739803],
[0.68448302, 0.38841374, 0.76714407],
[0.68808608, 0.39053331, 0.76683899],
[0.69164694, 0.39269860, 0.76648522],
[0.69516520, 0.39490921, 0.76608537],
[0.69864059, 0.39716460, 0.76564214],
[0.70207301, 0.39946407, 0.76515838],
[0.70546247, 0.40180677, 0.76463705],
[0.70880917, 0.40419174, 0.76408106],
[0.71211343, 0.40661789, 0.76349339],
[0.71537569, 0.40908404, 0.76287703],
[0.71859646, 0.41158889, 0.76223528],
[0.72177420, 0.41413336, 0.76156873],
[0.72490744, 0.41671836, 0.76087748],
[0.72800128, 0.41933809, 0.76016910],
[0.73105670, 0.42199106, 0.75944634],
[0.73407464, 0.42467564, 0.75871261],
[0.73705628, 0.42739031, 0.75797021],
[0.74000286, 0.43013356, 0.75722120],
[0.74291559, 0.43290383, 0.75646792],
[0.74579287, 0.43570208, 0.75571117],
[0.74863157, 0.43853134, 0.75494704],
[0.75143991, 0.44138331, 0.75418497],
[0.75421919, 0.44425636, 0.75342780],
[0.75697081, 0.44714922, 0.75267628],
[0.75969612, 0.45006023, 0.75193347],
[0.76239058, 0.45299391, 0.75119333],
[0.76505461, 0.45594945, 0.75045807],
[0.76769603, 0.45891960, 0.74973470],
[0.77031620, 0.46190298, 0.74902518],
[0.77291644, 0.46489865, 0.74832939],
[0.77548715, 0.46791500, 0.74764034],
[0.77803651, 0.47094499, 0.74696323],
[0.78056948, 0.47398395, 0.74630388],
[0.78308737, 0.47703072, 0.74566370],
[0.78558067, 0.48009423, 0.74503181],
[0.78805529, 0.48316902, 0.74441461],
[0.79051814, 0.48624899, 0.74381870],
[0.79297029, 0.48933363, 0.74324318],
[0.79539558, 0.49243715, 0.74267325],
[0.79781163, 0.49554414, 0.74212524],
[0.80022007, 0.49865343, 0.74159983],
[0.80261084, 0.50177388, 0.74108750],
[0.80498791, 0.50490231, 0.74059071],
[0.80736020, 0.50803118, 0.74011742],
[0.80971880, 0.51117004, 0.73964838],
[0.81207498, 0.51430734, 0.73920638],
[0.81443250, 0.51744350, 0.73877372],
[0.81678912, 0.52057916, 0.73835715],
[0.81913974, 0.52371645, 0.73796615],
[0.82149023, 0.52685374, 0.73758647],
[0.82384008, 0.52999133, 0.73721925],
[0.82618190, 0.53313253, 0.73687643],
[0.82852022, 0.53627573, 0.73654933],
[0.83085594, 0.53942080, 0.73623540],
[0.83318776, 0.54256880, 0.73593427],
[0.83550827, 0.54572255, 0.73566084],
[0.83782402, 0.54887977, 0.73540172],
[0.84013379, 0.55204162, 0.73515516],
[0.84243701, 0.55520816, 0.73492373],
[0.84472756, 0.55838206, 0.73471766],
[0.84700811, 0.56156273, 0.73452910],
[0.84927933, 0.56475001, 0.73435670],
[0.85154010, 0.56794459, 0.73420097],
[0.85378928, 0.57114722, 0.73406238],
[0.85602271, 0.57435960, 0.73394818],
[0.85824000, 0.57758235, 0.73385607],
[0.86044251, 0.58081489, 0.73378410],
[0.86262879, 0.58405812, 0.73373258],
[0.86479726, 0.58731305, 0.73370170],
[0.86694679, 0.59058005, 0.73369391],
[0.86907589, 0.59385992, 0.73371031],
[0.87118296, 0.59715352, 0.73375199],
[0.87326494, 0.60046226, 0.73382260],
[0.87532070, 0.60378673, 0.73392281],
[0.87734984, 0.60712720, 0.73405202],
[0.87935069, 0.61048443, 0.73421210],
[0.88132143, 0.61385923, 0.73440485],
[0.88326014, 0.61725251, 0.73463196],
[0.88516489, 0.62066509, 0.73489546],
[0.88703392, 0.62409762, 0.73519796],
[0.88886528, 0.62755088, 0.73554178],
[0.89065708, 0.63102556, 0.73592953],
[0.89240717, 0.63452253, 0.73636344],
[0.89411371, 0.63804239, 0.73684652],
[0.89577282, 0.64158640, 0.73738572],
[0.89738287, 0.64515519, 0.73798234],
[0.89894351, 0.64874848, 0.73863862],
[0.90045278, 0.65236688, 0.73935737],
[0.90190949, 0.65601038, 0.74014251],
[0.90331188, 0.65967941, 0.74099697],
[0.90465921, 0.66337365, 0.74192480],
[0.90594936, 0.66709347, 0.74293103],
[0.90717634, 0.67084062, 0.74402752],
[0.90834583, 0.67461222, 0.74520841],
[0.90945781, 0.67840763, 0.74647688],
[0.91051251, 0.68222606, 0.74783593],
[0.91150890, 0.68606717, 0.74929111],
[0.91244258, 0.68993180, 0.75085363],
[0.91332194, 0.69381603, 0.75251442],
[0.91414874, 0.69771841, 0.75427510],
[0.91492501, 0.70163743, 0.75613689],
[0.91564612, 0.70557406, 0.75811143],
[0.91631951, 0.70952481, 0.76019134],
[0.91695016, 0.71348722, 0.76237281],
[0.91754099, 0.71745964, 0.76465506],
[0.91809373, 0.72144092, 0.76703877],
[0.91860591, 0.72543145, 0.76953085],
[0.91908792, 0.72942708, 0.77211811],
[0.91954260, 0.73342655, 0.77479808],
[0.91996666, 0.73743180, 0.77756820],
[0.92037819, 0.74144005, 0.78036937],
[0.92080078, 0.74544211, 0.78317584],
[0.92123153, 0.74943970, 0.78598772],
[0.92166812, 0.75343419, 0.78880511],
[0.92210997, 0.75742604, 0.79162806],
[0.92256454, 0.76141172, 0.79445643],
[0.92302648, 0.76539411, 0.79729038],
[0.92349278, 0.76937487, 0.80013004],
[0.92397437, 0.77334881, 0.80297517],
[0.92446046, 0.77732143, 0.80582609],
[0.92495814, 0.78128944, 0.80868266],
[0.92546192, 0.78525569, 0.81154507],
[0.92598019, 0.78921632, 0.81441313],
[0.92650369, 0.79317597, 0.81728715],
[0.92703918, 0.79713157, 0.82016698],
[0.92758638, 0.80108345, 0.82305269],
[0.92814301, 0.80503288, 0.82594437],
[0.92871007, 0.80897954, 0.82884205],
[0.92928711, 0.81292384, 0.83174579],
[0.92987362, 0.81686616, 0.83465566],
[0.93047408, 0.82080462, 0.83757158],
[0.93108298, 0.82474191, 0.84049376],
[0.93170413, 0.82867647, 0.84342214],
[0.93233036, 0.83261169, 0.84635697],
[0.93296882, 0.83654448, 0.84929812],
[0.93360630, 0.84048092, 0.85224602],
[0.93417836, 0.84444968, 0.85520255],
]
12 changes: 10 additions & 2 deletions src/cmap/data/contrib/record.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"authors": [],
"colormaps": {},
"authors": [
"Antonio Camargo"
],
"colormaps": {
"araucaria": {
"category": "sequential",
"data": "cmap.data.contrib:araucaria",
"info": "The araucaria colormap is a sequential colormap that transitions from deep blue to light pink, created with the viscm tool."
}
},
"license": "CC0",
"namespace": "contrib",
"source": "https://github.com/tlambert03/cmap"
Expand Down

0 comments on commit 15ef977

Please sign in to comment.