ColorPalette#
- class tollan.plot.plotly.ColorPalette(name: str = 'Dark24')[source]#
Bases:
objectA class to manage colors from a named palette.
Attributes Summary
Methods Summary
cycle([scale])Create an infinite iterator cycling through colors.
cycle_alternated(*scales)Create iterator alternating between colors at different scales.
cycles(*scales)Create iterator cycling through color tuples at different scales.
get_scaled(scale)Get colors scaled by blending with white.
Attributes Documentation
- colors#
Tuple of hex color codes in the palette.
Methods Documentation
- cycle_alternated(*scales: float) Iterator[str][source]#
Create iterator alternating between colors at different scales.