Skip to content

updated Blues colormap and demoted old Blues to legacy_Blues #4681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 59 additions & 27 deletions lib/matplotlib/_cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,33 +537,33 @@ def gfunc32(x):
0.74901962280273438, 0.74901962280273438), (1.0,
0.40000000596046448, 0.40000000596046448)]}

_Blues_data = {'blue': [(0.0, 1.0, 1.0), (0.125, 0.9686274528503418,
0.9686274528503418), (0.25, 0.93725490570068359, 0.93725490570068359),
(0.375, 0.88235294818878174, 0.88235294818878174), (0.5,
0.83921569585800171, 0.83921569585800171), (0.625, 0.7764706015586853,
0.7764706015586853), (0.75, 0.70980393886566162, 0.70980393886566162),
(0.875, 0.61176472902297974, 0.61176472902297974), (1.0,
0.41960784792900085, 0.41960784792900085)],

'green': [(0.0, 0.9843137264251709, 0.9843137264251709), (0.125,
0.92156863212585449, 0.92156863212585449), (0.25,
0.85882353782653809, 0.85882353782653809), (0.375,
0.7921568751335144, 0.7921568751335144), (0.5,
0.68235296010971069, 0.68235296010971069), (0.625,
0.57254904508590698, 0.57254904508590698), (0.75,
0.44313725829124451, 0.44313725829124451), (0.875,
0.31764706969261169, 0.31764706969261169), (1.0,
0.18823529779911041, 0.18823529779911041)],

'red': [(0.0, 0.9686274528503418, 0.9686274528503418), (0.125,
0.87058824300765991, 0.87058824300765991), (0.25,
0.7764706015586853, 0.7764706015586853), (0.375,
0.61960786581039429, 0.61960786581039429), (0.5,
0.41960784792900085, 0.41960784792900085), (0.625,
0.25882354378700256, 0.25882354378700256), (0.75,
0.12941177189350128, 0.12941177189350128), (0.875,
0.031372550874948502, 0.031372550874948502), (1.0,
0.031372550874948502, 0.031372550874948502)]}
_Blues_data = {'blue': [(0.0, 0.9782054, 0.9782054),
(0.125, 0.87666655000000004, 0.87666655000000004),
(0.25, 0.78573117999999997, 0.78573117999999997),
(0.375, 0.70952543000000001, 0.70952543000000001),
(0.5, 0.65314384999999997, 0.65314384999999997),
(0.625, 0.61244030000000005, 0.61244030000000005),
(0.75, 0.55044550999999997, 0.55044550999999997),
(0.875, 0.47421664000000002, 0.47421664000000002),
(1.0, 0.39653484999999999, 0.39653484999999999)],
'green': [(0.0, 0.96435373000000002, 0.96435373000000002),
(0.125, 0.84878896999999998, 0.84878896999999998),
(0.25, 0.74288547999999999, 0.74288547999999999),
(0.375, 0.64714660999999996, 0.64714660999999996),
(0.5, 0.55673234999999999, 0.55673234999999999),
(0.625, 0.458227, 0.458227),
(0.75, 0.34806672999999999, 0.34806672999999999),
(0.875, 0.23439931, 0.23439931),
(1.0, 0.10631096, 0.10631096)],
'red': [(0.0, 0.95850340000000001, 0.95850340000000001),
(0.125, 0.80002967999999997, 0.80002967999999997),
(0.25, 0.63651499, 0.63651499),
(0.375, 0.46626529999999999, 0.46626529999999999),
(0.5, 0.27387718999999999, 0.27387718999999999),
(0.625, 0.06704388, 0.06704388),
(0.75, 0.0094642900000000002, 0.0094642900000000002),
(0.875, 0.047732139999999999, 0.047732139999999999),
(1.0, 0.069302340000000004, 0.069302340000000004)]}

_BrBG_data = {'blue': [(0.0, 0.019607843831181526,
0.019607843831181526), (0.10000000000000001, 0.039215687662363052,
Expand Down Expand Up @@ -1951,6 +1951,37 @@ def gfunc32(x):
}



# Legacy colormaps
_legacy_Blues_data = {'blue': [(0.0, 1.0, 1.0), (0.125, 0.9686274528503418,
0.9686274528503418), (0.25, 0.93725490570068359, 0.93725490570068359),
(0.375, 0.88235294818878174, 0.88235294818878174), (0.5,
0.83921569585800171, 0.83921569585800171), (0.625, 0.7764706015586853,
0.7764706015586853), (0.75, 0.70980393886566162, 0.70980393886566162),
(0.875, 0.61176472902297974, 0.61176472902297974), (1.0,
0.41960784792900085, 0.41960784792900085)],

'green': [(0.0, 0.9843137264251709, 0.9843137264251709), (0.125,
0.92156863212585449, 0.92156863212585449), (0.25,
0.85882353782653809, 0.85882353782653809), (0.375,
0.7921568751335144, 0.7921568751335144), (0.5,
0.68235296010971069, 0.68235296010971069), (0.625,
0.57254904508590698, 0.57254904508590698), (0.75,
0.44313725829124451, 0.44313725829124451), (0.875,
0.31764706969261169, 0.31764706969261169), (1.0,
0.18823529779911041, 0.18823529779911041)],

'red': [(0.0, 0.9686274528503418, 0.9686274528503418), (0.125,
0.87058824300765991, 0.87058824300765991), (0.25,
0.7764706015586853, 0.7764706015586853), (0.375,
0.61960786581039429, 0.61960786581039429), (0.5,
0.41960784792900085, 0.41960784792900085), (0.625,
0.25882354378700256, 0.25882354378700256), (0.75,
0.12941177189350128, 0.12941177189350128), (0.875,
0.031372550874948502, 0.031372550874948502), (1.0,
0.031372550874948502, 0.031372550874948502)]}


datad['Accent'] = _Accent_data
datad['Blues'] = _Blues_data
datad['BrBG'] = _BrBG_data
Expand Down Expand Up @@ -1995,3 +2026,4 @@ def gfunc32(x):
datad['gist_yarg'] = _gist_yarg_data
datad['coolwarm'] = _coolwarm_data
datad['Wistia'] = _wistia_data
datad['legacy_Blues'] = _legacy_Blues_data