class documentation
FiftyOne App configuration settings.
Method | __init__ |
Undocumented |
Method | get |
Generates a continuous colormap with the specified number of colors from the given colorscale. |
Instance Variable | color |
Undocumented |
Instance Variable | color |
Undocumented |
Instance Variable | colorscale |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | disable |
Undocumented |
Instance Variable | enable |
Undocumented |
Instance Variable | grid |
Undocumented |
Instance Variable | loop |
Undocumented |
Instance Variable | media |
Undocumented |
Instance Variable | multicolor |
Undocumented |
Instance Variable | notebook |
Undocumented |
Instance Variable | plugins |
Undocumented |
Instance Variable | proxy |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | theme |
Undocumented |
Instance Variable | use |
Undocumented |
Method | _init |
Undocumented |
Inherited from EnvConfig
:
Method | __repr__ |
Undocumented |
Generates a continuous colormap with the specified number of colors from the given colorscale.
The provided colorscale can be any of the following:
The string name of any colorscale recognized by plotly. See https://plotly.com/python/colorscales for possible options
A manually-defined colorscale like the following:
[ [0.000, "rgb(165,0,38)"], [0.111, "rgb(215,48,39)"], [0.222, "rgb(244,109,67)"], [0.333, "rgb(253,174,97)"], [0.444, "rgb(254,224,144)"], [0.555, "rgb(224,243,248)"], [0.666, "rgb(171,217,233)"], [0.777, "rgb(116,173,209)"], [0.888, "rgb(69,117,180)"], [1.000, "rgb(49,54,149)"], ]
The colorscale will be sampled evenly at the required resolution in order to generate the colormap.
Parameters | |
colorscale:None | a valid colorscale. See above for possible
options. By default, colorscale is used |
n:256 | the desired number of colors |
hexFalse | whether to return #RRGGBB hex strings rather than (R, G, B) tuples |
Returns | |
a list of (R, G, B) tuples in [0, 255] , or, if hex_strs
is True, a list of #RRGGBB strings |