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 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
|
"""
Sequential color scales are appropriate for most continuous data, but in some cases it \
can be helpful to use a `plotly.colors.diverging` or \
`plotly.colors.cyclical` scale instead. The color scales in this module are \
mostly meant to be passed in as the `color_continuous_scale` argument to various functions.
"""
from ._swatches import _swatches, _swatches_continuous
def swatches(template=None):
return _swatches(__name__, globals(), template)
swatches.__doc__ = _swatches.__doc__
def swatches_continuous(template=None):
return _swatches_continuous(__name__, globals(), template)
swatches_continuous.__doc__ = _swatches_continuous.__doc__
Plotly3 = [
"#0508b8",
"#1910d8",
"#3c19f0",
"#6b1cfb",
"#981cfd",
"#bf1cfd",
"#dd2bfd",
"#f246fe",
"#fc67fd",
"#fe88fc",
"#fea5fd",
"#febefe",
"#fec3fe",
]
Viridis = [
"#440154",
"#482878",
"#3e4989",
"#31688e",
"#26828e",
"#1f9e89",
"#35b779",
"#6ece58",
"#b5de2b",
"#fde725",
]
Cividis = [
"#00224e",
"#123570",
"#3b496c",
"#575d6d",
"#707173",
"#8a8678",
"#a59c74",
"#c3b369",
"#e1cc55",
"#fee838",
]
Inferno = [
"#000004",
"#1b0c41",
"#4a0c6b",
"#781c6d",
"#a52c60",
"#cf4446",
"#ed6925",
"#fb9b06",
"#f7d13d",
"#fcffa4",
]
Magma = [
"#000004",
"#180f3d",
"#440f76",
"#721f81",
"#9e2f7f",
"#cd4071",
"#f1605d",
"#fd9668",
"#feca8d",
"#fcfdbf",
]
Plasma = [
"#0d0887",
"#46039f",
"#7201a8",
"#9c179e",
"#bd3786",
"#d8576b",
"#ed7953",
"#fb9f3a",
"#fdca26",
"#f0f921",
]
Turbo = [
"#30123b",
"#4145ab",
"#4675ed",
"#39a2fc",
"#1bcfd4",
"#24eca6",
"#61fc6c",
"#a4fc3b",
"#d1e834",
"#f3c63a",
"#fe9b2d",
"#f36315",
"#d93806",
"#b11901",
"#7a0402",
]
Cividis_r = Cividis[::-1]
Inferno_r = Inferno[::-1]
Magma_r = Magma[::-1]
Plasma_r = Plasma[::-1]
Plotly3_r = Plotly3[::-1]
Turbo_r = Turbo[::-1]
Viridis_r = Viridis[::-1]
from .plotlyjs import ( # noqa: F401
Blackbody,
Bluered,
Electric,
Hot,
Jet,
Rainbow,
Blackbody_r,
Bluered_r,
Electric_r,
Hot_r,
Jet_r,
Rainbow_r,
)
from .colorbrewer import ( # noqa: F401
Blues,
BuGn,
BuPu,
GnBu,
Greens,
Greys,
OrRd,
Oranges,
PuBu,
PuBuGn,
PuRd,
Purples,
RdBu,
RdPu,
Reds,
YlGn,
YlGnBu,
YlOrBr,
YlOrRd,
Blues_r,
BuGn_r,
BuPu_r,
GnBu_r,
Greens_r,
Greys_r,
OrRd_r,
Oranges_r,
PuBu_r,
PuBuGn_r,
PuRd_r,
Purples_r,
RdBu_r,
RdPu_r,
Reds_r,
YlGn_r,
YlGnBu_r,
YlOrBr_r,
YlOrRd_r,
)
from .cmocean import ( # noqa: F401
turbid,
thermal,
haline,
solar,
ice,
gray,
deep,
dense,
algae,
matter,
speed,
amp,
tempo,
turbid_r,
thermal_r,
haline_r,
solar_r,
ice_r,
gray_r,
deep_r,
dense_r,
algae_r,
matter_r,
speed_r,
amp_r,
tempo_r,
)
from .carto import ( # noqa: F401
Burg,
Burgyl,
Redor,
Oryel,
Peach,
Pinkyl,
Mint,
Blugrn,
Darkmint,
Emrld,
Aggrnyl,
Bluyl,
Teal,
Tealgrn,
Purp,
Purpor,
Sunset,
Magenta,
Sunsetdark,
Agsunset,
Brwnyl,
Burg_r,
Burgyl_r,
Redor_r,
Oryel_r,
Peach_r,
Pinkyl_r,
Mint_r,
Blugrn_r,
Darkmint_r,
Emrld_r,
Aggrnyl_r,
Bluyl_r,
Teal_r,
Tealgrn_r,
Purp_r,
Purpor_r,
Sunset_r,
Magenta_r,
Sunsetdark_r,
Agsunset_r,
Brwnyl_r,
)
__all__ = ["swatches"]
|