Skip to content

Zsailer/yerkes

Repository files navigation

Yerkes

Interactive color palettes in Altair

pypi travis docs

Visualize color palettes interactively in Altair!.

How to use.

The simplest use case is to pass the palette a list of colors.

  1. Import NewPalette from Yerkes.
  2. 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.

About

Interactive color palettes in Altair

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages