Yerkes
Interactive color palettes in Altair
- Free software: MIT license
- Documentation: https://yerkes.readthedocs.io.
Visualize color palettes interactively in Altair!.
How to use.
The simplest use case is to pass the palette a list of colors.
- Import
NewPalette
from Yerkes. - Pass a list of color-hex codes to
NewPalette
.
from yerkes import NewPalette
colors = [
'#FCFFA4',
'#F6D746',
'#FCA50A',
'#F3761B',
]
NewPalette(colors)
You can also try exploring palettes from palettable.
# Import palette
from yerkes import NewPalette
# Import a palette from palettable.
from palettable.colorbrewer.diverging import RdGy_10 as palette
# Show interactive palette
NewPalette(palette.hex_colors)
Install
Install from PyPI.
pip install yerkes
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.