Skip to main content

Additional named color schemes for Altair via a custom renderer.

Project description

altair-extra-color-schemes

Additional named color schemes for Altair via a custom renderer.

Quickstart

Installation

Via pip:

pip install altair-extra-color-schemes

Via Pipenv:

pipenv install altair-extra-color-schemes

Via Poetry:

poetry add altair-extra-color-schemes

Via PDM:

pdm add altair-extra-color-schemes

Via Pyflow:

pyflow install altair-extra-color-schemes

Usage

import altair as alt
alt.renderers.enable("extra_color_schemes")

You can find some example charts in the demo.ipynb notebook.

Color schemes

Color scheme name Type Source Notes
"dvs" Categorical Data Visualization Standards (DVS) "Featured Colors" and "Qualitative Colors" > "Example Palette"

Development

Poetry (version 1.2.0)

Add new color schemes to the altair_extra_color_schemes/full_template.jinja file

  • poetry config virtualenvs.in-project true
  • poetry install
  • poetry run jupyter lab
  • poetry run black demo.ipynb
  • poetry check

Deployment

  • poetry version minor or poetry version patch
  • poetry build

Notes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

altair-extra-color-schemes-0.2.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page