@@ -852,7 +852,6 @@ def _g36(x): return 2 * x - 1
852852 (0.50196078431372548 , 0.0 , 0.14901960784313725 )
853853 )
854854
855-
856855# ColorBrewer's qualitative maps, implemented using ListedColormap
857856# for use with mpl.colors.NoNorm
858857
@@ -867,12 +866,23 @@ def _g36(x): return 2 * x - 1
867866 (0.4 , 0.4 , 0.4 ),
868867 )
869868
870- # Okabe-Ito accessible color palette (2002).
869+ _Dark2_data = (
870+ (0.10588235294117647 , 0.61960784313725492 , 0.46666666666666667 ),
871+ (0.85098039215686272 , 0.37254901960784315 , 0.00784313725490196 ),
872+ (0.45882352941176469 , 0.4392156862745098 , 0.70196078431372544 ),
873+ (0.90588235294117647 , 0.16078431372549021 , 0.54117647058823526 ),
874+ (0.4 , 0.65098039215686276 , 0.11764705882352941 ),
875+ (0.90196078431372551 , 0.6705882352941176 , 0.00784313725490196 ),
876+ (0.65098039215686276 , 0.46274509803921571 , 0.11372549019607843 ),
877+ (0.4 , 0.4 , 0.4 ),
878+ )
879+
880+ # Okabe-Ito accessible and print-friendly color palette (2002).
871881# By Masataka Okabe (Jikei Medical School) and Kei Ito (University of Tokyo).
872- # Qualitative color palette that is unambiguous regardless of whether the viewer has colorblindness.
873- # https://jfly.uni-koeln.de/color/#pallet
882+ # Qualitative color palette that is unambiguous regardless of whether
883+ # the viewer has colorblindness. https://jfly.uni-koeln.de/color/#pallet
874884
875- _Accessible_data = (
885+ _Okabe_Ito_data = (
876886 (0.0 , 0.0 , 0.0 ), # black
877887 (0.901960784 , 0.623529412 , 0.0 ), # e69f00
878888 (0.337254902 , 0.705882353 , 0.91372549 ), # 56b4e9
@@ -883,17 +893,6 @@ def _g36(x): return 2 * x - 1
883893 (0.8 , 0.474509804 , 0.654901961 ), # cc79a7
884894)
885895
886- _Dark2_data = (
887- (0.10588235294117647 , 0.61960784313725492 , 0.46666666666666667 ),
888- (0.85098039215686272 , 0.37254901960784315 , 0.00784313725490196 ),
889- (0.45882352941176469 , 0.4392156862745098 , 0.70196078431372544 ),
890- (0.90588235294117647 , 0.16078431372549021 , 0.54117647058823526 ),
891- (0.4 , 0.65098039215686276 , 0.11764705882352941 ),
892- (0.90196078431372551 , 0.6705882352941176 , 0.00784313725490196 ),
893- (0.65098039215686276 , 0.46274509803921571 , 0.11372549019607843 ),
894- (0.4 , 0.4 , 0.4 ),
895- )
896-
897896_Paired_data = (
898897 (0.65098039215686276 , 0.80784313725490198 , 0.8901960784313725 ),
899898 (0.12156862745098039 , 0.47058823529411764 , 0.70588235294117652 ),
@@ -1485,7 +1484,7 @@ def _gist_yarg(x): return 1 - x
14851484 'winter' : _winter_data ,
14861485 # Qualitative
14871486 'Accent' : {'listed' : _Accent_data },
1488- 'Accessible ' : {'listed' : _Accessible_data },
1487+ 'Okabe-Ito ' : {'listed' : _Okabe_Ito_data },
14891488 'Dark2' : {'listed' : _Dark2_data },
14901489 'Paired' : {'listed' : _Paired_data },
14911490 'Pastel1' : {'listed' : _Pastel1_data },
0 commit comments