-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathqualitative.py
184 lines (173 loc) · 2.72 KB
/
qualitative.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
"""
Qualitative color sequences are appropriate for data that has no natural ordering, such \
as categories, colors, names, countries etc. The color sequences in this module are \
mostly meant to be passed in as the `color_discrete_sequence` argument to various functions.
"""
from ._swatches import _swatches
def swatches(template=None):
return _swatches(__name__, globals(), template)
swatches.__doc__ = _swatches.__doc__
Plotly = [
"#636EFA",
"#EF553B",
"#00CC96",
"#AB63FA",
"#FFA15A",
"#19D3F3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52",
]
D3 = [
"#1F77B4",
"#FF7F0E",
"#2CA02C",
"#D62728",
"#9467BD",
"#8C564B",
"#E377C2",
"#7F7F7F",
"#BCBD22",
"#17BECF",
]
G10 = [
"#3366CC",
"#DC3912",
"#FF9900",
"#109618",
"#990099",
"#0099C6",
"#DD4477",
"#66AA00",
"#B82E2E",
"#316395",
]
T10 = [
"#4C78A8",
"#F58518",
"#E45756",
"#72B7B2",
"#54A24B",
"#EECA3B",
"#B279A2",
"#FF9DA6",
"#9D755D",
"#BAB0AC",
]
Alphabet = [
"#AA0DFE",
"#3283FE",
"#85660D",
"#782AB6",
"#565656",
"#1C8356",
"#16FF32",
"#F7E1A0",
"#E2E2E2",
"#1CBE4F",
"#C4451C",
"#DEA0FD",
"#FE00FA",
"#325A9B",
"#FEAF16",
"#F8A19F",
"#90AD1C",
"#F6222E",
"#1CFFCE",
"#2ED9FF",
"#B10DA1",
"#C075A6",
"#FC1CBF",
"#B00068",
"#FBE426",
"#FA0087",
]
Dark24 = [
"#2E91E5",
"#E15F99",
"#1CA71C",
"#FB0D0D",
"#DA16FF",
"#222A2A",
"#B68100",
"#750D86",
"#EB663B",
"#511CFB",
"#00A08B",
"#FB00D1",
"#FC0080",
"#B2828D",
"#6C7C32",
"#778AAE",
"#862A16",
"#A777F1",
"#620042",
"#1616A7",
"#DA60CA",
"#6C4516",
"#0D2A63",
"#AF0038",
]
Light24 = [
"#FD3216",
"#00FE35",
"#6A76FC",
"#FED4C4",
"#FE00CE",
"#0DF9FF",
"#F6F926",
"#FF9616",
"#479B55",
"#EEA6FB",
"#DC587D",
"#D626FF",
"#6E899C",
"#00B5F7",
"#B68E00",
"#C9FBE5",
"#FF0092",
"#22FFA7",
"#E3EE9E",
"#86CE00",
"#BC7196",
"#7E7DCD",
"#FC6955",
"#E48F72",
]
Alphabet_r = Alphabet[::-1]
D3_r = D3[::-1]
Dark24_r = Dark24[::-1]
G10_r = G10[::-1]
Light24_r = Light24[::-1]
Plotly_r = Plotly[::-1]
T10_r = T10[::-1]
from .colorbrewer import ( # noqa: F401
Set1,
Pastel1,
Dark2,
Set2,
Pastel2,
Set3,
Set1_r,
Pastel1_r,
Dark2_r,
Set2_r,
Pastel2_r,
Set3_r,
)
from .carto import ( # noqa: F401
Antique,
Bold,
Pastel,
Prism,
Safe,
Vivid,
Antique_r,
Bold_r,
Pastel_r,
Prism_r,
Safe_r,
Vivid_r,
)
__all__ = ["swatches"]