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
orpoetry version patch
poetry build
Notes
- djLint:
pipx install djlint
djlint altair_extra_color_schemes/template.jinja --check
djlint altair_extra_color_schemes/template.jinja --reformat
djlint altair_extra_color_schemes/template.jinja --profile=jinja
djlint formatter.jinja --reformat --format-css --format-js
- Default color schemes
- DjHTML:
pipx install djhtml
djhtml -i formatter.html
- curlylint:
pipx install curlylint
curlylint altair_extra_color_schemes/full_template.jinja
- Cloudscape Design System (Figma file)
- Poetry:
pip --version
- Nullish coalescing operator (??): Short-circuiting
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file altair-extra-color-schemes-0.2.0.tar.gz
.
File metadata
- Download URL: altair-extra-color-schemes-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74d97fa1cb6974699371a65240c9d9c3188c97702ef1d1c275d0052c5dab49f3 |
|
MD5 | ce351bf57f6b86635aad6bff0fad2e58 |
|
BLAKE2b-256 | 8eca1b5e4892b98fe21b78f2ec63c65736f6fbebb014035b95a681689b35226f |
File details
Details for the file altair_extra_color_schemes-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: altair_extra_color_schemes-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e2f14ae1449ea3cb177e9950b2674139d417fcb49c5dd5644aa8844cccd543 |
|
MD5 | b9cc9a80942594dc00a9aa93bfa06e68 |
|
BLAKE2b-256 | f386cb5f04dfa4eb1b4f582ad51757ef6c4b8a3c472d78014344fc3980d0801a |