From 1556164b6f6dea1d46ee0fd506ca153907427da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Camargo?= Date: Wed, 18 Dec 2024 17:53:28 -0800 Subject: [PATCH 1/3] Add the pantanal colormap --- src/cmap/data/contrib/__init__.py | 260 ++++++++++++++++++++++++++++++ src/cmap/data/contrib/record.json | 12 +- 2 files changed, 270 insertions(+), 2 deletions(-) diff --git a/src/cmap/data/contrib/__init__.py b/src/cmap/data/contrib/__init__.py index f36cba24f..817588596 100644 --- a/src/cmap/data/contrib/__init__.py +++ b/src/cmap/data/contrib/__init__.py @@ -565,3 +565,263 @@ [0.95416907, 0.79527222, 0.72554452], [0.95294118, 0.80000000, 0.72941176], ] + +pantanal = [ + [1.00000000, 1.00000000, 1.00000000], + [0.99607843, 0.99607843, 0.98823529], + [0.98823529, 0.99607843, 0.97647059], + [0.98431373, 0.99215686, 0.96470588], + [0.98039216, 0.99215686, 0.95686275], + [0.97254902, 0.98823529, 0.94509804], + [0.96862745, 0.98823529, 0.93333333], + [0.96470588, 0.98431373, 0.92156863], + [0.95686275, 0.98039216, 0.90980392], + [0.95294118, 0.98039216, 0.89803922], + [0.94509804, 0.97647059, 0.88627451], + [0.94117647, 0.97647059, 0.87450980], + [0.93725490, 0.97254902, 0.86666667], + [0.92941176, 0.96862745, 0.85490196], + [0.92549020, 0.96862745, 0.84313725], + [0.92156863, 0.96470588, 0.83137255], + [0.91372549, 0.96078431, 0.81960784], + [0.90980392, 0.96078431, 0.81176471], + [0.90588235, 0.95686275, 0.80000000], + [0.89803922, 0.95686275, 0.78823529], + [0.89411765, 0.95294118, 0.77647059], + [0.88627451, 0.94901961, 0.76862745], + [0.88235294, 0.94901961, 0.75686275], + [0.87843137, 0.94509804, 0.74509804], + [0.87058824, 0.94117647, 0.73333333], + [0.86666667, 0.94117647, 0.72549020], + [0.85882353, 0.93725490, 0.71372549], + [0.85490196, 0.93333333, 0.70196078], + [0.85098039, 0.93333333, 0.69411765], + [0.84313725, 0.92941176, 0.68235294], + [0.83921569, 0.92941176, 0.67450980], + [0.83137255, 0.92549020, 0.66274510], + [0.82745098, 0.92156863, 0.65490196], + [0.81960784, 0.92156863, 0.64313725], + [0.81568627, 0.91764706, 0.63529412], + [0.80784314, 0.91372549, 0.62352941], + [0.80392157, 0.91372549, 0.61568627], + [0.79607843, 0.90980392, 0.60784314], + [0.79215686, 0.90588235, 0.59607843], + [0.78431373, 0.90588235, 0.58823529], + [0.78039216, 0.90196078, 0.58039216], + [0.77254902, 0.89803922, 0.57254902], + [0.76862745, 0.89803922, 0.56470588], + [0.76078431, 0.89411765, 0.55294118], + [0.75294118, 0.89019608, 0.54509804], + [0.74901961, 0.89019608, 0.53725490], + [0.74117647, 0.88627451, 0.52941176], + [0.73333333, 0.88235294, 0.52549020], + [0.72941176, 0.88235294, 0.51764706], + [0.72156863, 0.87843137, 0.50980392], + [0.71372549, 0.87450980, 0.50196078], + [0.70980392, 0.87058824, 0.49803922], + [0.70196078, 0.87058824, 0.49019608], + [0.69411765, 0.86666667, 0.48235294], + [0.68627451, 0.86274510, 0.47843137], + [0.67843137, 0.86274510, 0.47450980], + [0.67450980, 0.85882353, 0.46666667], + [0.66666667, 0.85490196, 0.46274510], + [0.65882353, 0.85490196, 0.45882353], + [0.65098039, 0.85098039, 0.45490196], + [0.64313725, 0.84705882, 0.45098039], + [0.63529412, 0.84705882, 0.44705882], + [0.62745098, 0.84313725, 0.44313725], + [0.61960784, 0.83921569, 0.43921569], + [0.61176471, 0.83921569, 0.43921569], + [0.60000000, 0.83529412, 0.43529412], + [0.59215686, 0.83137255, 0.43137255], + [0.58431373, 0.83137255, 0.43137255], + [0.57647059, 0.82745098, 0.43137255], + [0.56862745, 0.82352941, 0.43137255], + [0.55686275, 0.82352941, 0.42745098], + [0.54901961, 0.81960784, 0.42745098], + [0.53725490, 0.81568627, 0.42745098], + [0.52941176, 0.81568627, 0.42745098], + [0.52156863, 0.81176471, 0.42745098], + [0.50980392, 0.80784314, 0.43137255], + [0.49803922, 0.80784314, 0.43137255], + [0.49019608, 0.80392157, 0.43137255], + [0.47843137, 0.80000000, 0.43529412], + [0.46666667, 0.80000000, 0.43529412], + [0.45882353, 0.79607843, 0.43921569], + [0.44705882, 0.79215686, 0.43921569], + [0.43529412, 0.79215686, 0.44313725], + [0.42352941, 0.78823529, 0.44313725], + [0.41176471, 0.78431373, 0.44705882], + [0.40000000, 0.78039216, 0.45098039], + [0.38823529, 0.78039216, 0.45098039], + [0.37647059, 0.77647059, 0.45490196], + [0.36470588, 0.77254902, 0.45882353], + [0.34901961, 0.77254902, 0.46274510], + [0.33725490, 0.76862745, 0.46274510], + [0.32156863, 0.76470588, 0.46666667], + [0.30980392, 0.76078431, 0.47058824], + [0.29411765, 0.76078431, 0.47450980], + [0.27843137, 0.75686275, 0.47843137], + [0.26274510, 0.75294118, 0.48235294], + [0.24313725, 0.74901961, 0.48627451], + [0.22745098, 0.74901961, 0.49019608], + [0.20392157, 0.74509804, 0.49411765], + [0.18431373, 0.74117647, 0.49411765], + [0.16078431, 0.73725490, 0.49803922], + [0.13333333, 0.73333333, 0.50196078], + [0.09803922, 0.73333333, 0.50588235], + [0.05098039, 0.72941176, 0.50980392], + [0.00000000, 0.72549020, 0.51372549], + [0.00000000, 0.72156863, 0.51764706], + [0.00000000, 0.71764706, 0.52156863], + [0.00000000, 0.71764706, 0.52549020], + [0.00000000, 0.71372549, 0.52941176], + [0.00000000, 0.70980392, 0.53333333], + [0.00000000, 0.70588235, 0.53725490], + [0.00000000, 0.70196078, 0.54117647], + [0.00000000, 0.69803922, 0.54509804], + [0.00000000, 0.69411765, 0.54901961], + [0.00000000, 0.69019608, 0.55294118], + [0.00000000, 0.68627451, 0.55686275], + [0.00000000, 0.68235294, 0.56078431], + [0.00000000, 0.67843137, 0.56078431], + [0.00000000, 0.67450980, 0.56470588], + [0.00000000, 0.66666667, 0.56862745], + [0.00000000, 0.66274510, 0.56862745], + [0.00000000, 0.65882353, 0.57254902], + [0.00000000, 0.65490196, 0.57647059], + [0.00000000, 0.65098039, 0.57647059], + [0.00000000, 0.64705882, 0.57647059], + [0.00000000, 0.64313725, 0.58039216], + [0.00000000, 0.63921569, 0.58039216], + [0.00000000, 0.63137255, 0.58431373], + [0.00000000, 0.62745098, 0.58431373], + [0.00000000, 0.62352941, 0.58431373], + [0.00000000, 0.61960784, 0.58431373], + [0.00000000, 0.61568627, 0.58431373], + [0.00000000, 0.61176471, 0.58823529], + [0.00000000, 0.60784314, 0.58823529], + [0.00000000, 0.60392157, 0.58823529], + [0.00000000, 0.60000000, 0.58823529], + [0.00000000, 0.59215686, 0.58823529], + [0.00000000, 0.58823529, 0.58823529], + [0.00000000, 0.58431373, 0.58823529], + [0.00000000, 0.58039216, 0.58823529], + [0.00000000, 0.57647059, 0.58431373], + [0.00000000, 0.57254902, 0.58431373], + [0.00000000, 0.56862745, 0.58431373], + [0.00000000, 0.56470588, 0.58431373], + [0.00000000, 0.56078431, 0.58431373], + [0.00000000, 0.55686275, 0.58431373], + [0.00000000, 0.54901961, 0.58039216], + [0.00000000, 0.54509804, 0.58039216], + [0.00000000, 0.54117647, 0.58039216], + [0.00000000, 0.53725490, 0.58039216], + [0.00000000, 0.53333333, 0.57647059], + [0.00000000, 0.52941176, 0.57647059], + [0.00000000, 0.52549020, 0.57647059], + [0.00000000, 0.52156863, 0.57254902], + [0.00000000, 0.51764706, 0.57254902], + [0.00000000, 0.51372549, 0.57254902], + [0.00000000, 0.50588235, 0.56862745], + [0.00000000, 0.50196078, 0.56862745], + [0.00000000, 0.49803922, 0.56470588], + [0.00000000, 0.49411765, 0.56470588], + [0.00000000, 0.49019608, 0.56470588], + [0.00000000, 0.48627451, 0.56078431], + [0.00000000, 0.48235294, 0.56078431], + [0.00000000, 0.47843137, 0.55686275], + [0.00000000, 0.47450980, 0.55686275], + [0.00000000, 0.47058824, 0.55294118], + [0.00000000, 0.46666667, 0.55294118], + [0.00000000, 0.46274510, 0.54901961], + [0.00000000, 0.45882353, 0.54901961], + [0.00000000, 0.45490196, 0.54509804], + [0.00000000, 0.44705882, 0.54509804], + [0.00000000, 0.44313725, 0.54117647], + [0.00000000, 0.43921569, 0.53725490], + [0.00000000, 0.43529412, 0.53725490], + [0.00000000, 0.43137255, 0.53333333], + [0.00000000, 0.42745098, 0.53333333], + [0.00000000, 0.42352941, 0.52941176], + [0.00000000, 0.41960784, 0.52549020], + [0.00000000, 0.41568627, 0.52549020], + [0.00000000, 0.41176471, 0.52156863], + [0.00000000, 0.40784314, 0.51764706], + [0.00000000, 0.40392157, 0.51764706], + [0.00000000, 0.40000000, 0.51372549], + [0.00000000, 0.39607843, 0.50980392], + [0.00000000, 0.39215686, 0.50980392], + [0.00000000, 0.38823529, 0.50588235], + [0.00000000, 0.38431373, 0.50196078], + [0.00000000, 0.38039216, 0.49803922], + [0.00000000, 0.37647059, 0.49803922], + [0.00000000, 0.37254902, 0.49411765], + [0.00000000, 0.36862745, 0.49019608], + [0.00000000, 0.36470588, 0.48627451], + [0.00000000, 0.36078431, 0.48235294], + [0.00000000, 0.35686275, 0.48235294], + [0.00000000, 0.35294118, 0.47843137], + [0.00000000, 0.34901961, 0.47450980], + [0.00000000, 0.34509804, 0.47058824], + [0.00000000, 0.34117647, 0.46666667], + [0.00000000, 0.33725490, 0.45882353], + [0.00000000, 0.32941176, 0.45490196], + [0.00000000, 0.32549020, 0.44705882], + [0.00000000, 0.32156863, 0.43921569], + [0.00392157, 0.31764706, 0.43529412], + [0.03137255, 0.31372549, 0.42745098], + [0.05490196, 0.30980392, 0.41960784], + [0.07450980, 0.30588235, 0.41176471], + [0.09019608, 0.29803922, 0.40392157], + [0.10588235, 0.29411765, 0.39607843], + [0.11764706, 0.29019608, 0.39215686], + [0.12941176, 0.28627451, 0.38431373], + [0.13725490, 0.28235294, 0.37647059], + [0.14901961, 0.27843137, 0.36862745], + [0.15686275, 0.27058824, 0.36078431], + [0.16470588, 0.26666667, 0.35294118], + [0.17254902, 0.26274510, 0.34509804], + [0.18039216, 0.25882353, 0.33725490], + [0.18823529, 0.25490196, 0.32549020], + [0.19215686, 0.24705882, 0.31764706], + [0.20000000, 0.24313725, 0.30980392], + [0.20392157, 0.23921569, 0.30196078], + [0.21176471, 0.23529412, 0.29411765], + [0.21568627, 0.22745098, 0.28627451], + [0.21960784, 0.22352941, 0.27843137], + [0.22745098, 0.21960784, 0.26666667], + [0.23137255, 0.21176471, 0.25882353], + [0.23529412, 0.20784314, 0.25098039], + [0.23921569, 0.20392157, 0.24313725], + [0.24313725, 0.19607843, 0.23137255], + [0.25098039, 0.19215686, 0.22352941], + [0.25490196, 0.18431373, 0.21568627], + [0.25882353, 0.18039216, 0.20392157], + [0.26274510, 0.17254902, 0.19607843], + [0.26274510, 0.16862745, 0.18823529], + [0.26666667, 0.16078431, 0.17647059], + [0.27058824, 0.15686275, 0.16862745], + [0.27450980, 0.14901961, 0.15686275], + [0.27843137, 0.14117647, 0.14901961], + [0.28235294, 0.13725490, 0.13725490], + [0.28235294, 0.12941176, 0.12941176], + [0.28627451, 0.12156863, 0.11764706], + [0.29019608, 0.11372549, 0.10980392], + [0.29019608, 0.10588235, 0.09803922], + [0.29411765, 0.09803922, 0.08627451], + [0.29803922, 0.08627451, 0.07450980], + [0.29803922, 0.07843137, 0.06274510], + [0.30196078, 0.06666667, 0.04705882], + [0.30196078, 0.05490196, 0.03529412], + [0.30588235, 0.03921569, 0.01960784], + [0.30588235, 0.02352941, 0.00784314], + [0.30980392, 0.00784314, 0.00000000], + [0.30980392, 0.00000000, 0.00000000], + [0.31372549, 0.00000000, 0.00000000], + [0.31372549, 0.00000000, 0.00000000], + [0.31372549, 0.00000000, 0.00000000], + [0.30980392, 0.00000000, 0.00000000], + [0.30196078, 0.00000000, 0.00000000], + [0.29411765, 0.00000000, 0.00000000], +] \ No newline at end of file diff --git a/src/cmap/data/contrib/record.json b/src/cmap/data/contrib/record.json index 87a055f7c..138f04754 100644 --- a/src/cmap/data/contrib/record.json +++ b/src/cmap/data/contrib/record.json @@ -14,8 +14,16 @@ ], "category": "sequential", "data": "cmap.data.contrib:cerrado", - "info": "The cerrado colormap is a sequential colormap with earthy tones created via color interpolation in the OKLAB space." - } + "info": "The cerrado colormap is a sequential colormap with earthy tones, created via color interpolation in the OKLAB space." + }, + "pantanal": { + "authors": [ + "Antonio Camargo" + ], + "category": "sequential", + "data": "cmap.data.contrib:pantanal", + "info": "The pantanal colormap is a sequential colormap that transitions from white to light green, then teal, and finally dark red, created via color interpolation in the OKLAB space." + }, }, "license": "CC0", "namespace": "contrib", From c636856fd5b6803ffc332e1eb9dc1ce4b675c082 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 01:56:03 +0000 Subject: [PATCH 2/3] style(pre-commit.ci): auto fixes [...] --- src/cmap/data/contrib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmap/data/contrib/__init__.py b/src/cmap/data/contrib/__init__.py index 817588596..d043b7e47 100644 --- a/src/cmap/data/contrib/__init__.py +++ b/src/cmap/data/contrib/__init__.py @@ -824,4 +824,4 @@ [0.30980392, 0.00000000, 0.00000000], [0.30196078, 0.00000000, 0.00000000], [0.29411765, 0.00000000, 0.00000000], -] \ No newline at end of file +] From da21634b74fa6ea451c1b7d701542c961c621159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Camargo?= Date: Thu, 19 Dec 2024 05:12:31 -0800 Subject: [PATCH 3/3] Remove extra comma in JSON --- src/cmap/data/contrib/record.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmap/data/contrib/record.json b/src/cmap/data/contrib/record.json index 138f04754..657dda512 100644 --- a/src/cmap/data/contrib/record.json +++ b/src/cmap/data/contrib/record.json @@ -23,7 +23,7 @@ "category": "sequential", "data": "cmap.data.contrib:pantanal", "info": "The pantanal colormap is a sequential colormap that transitions from white to light green, then teal, and finally dark red, created via color interpolation in the OKLAB space." - }, + } }, "license": "CC0", "namespace": "contrib",