Applies Tableau's new color maps with only an import statement
Project description
tableau-colormap
Applies Tableau's new color maps with only an import statement
Usage
After importing matplotlib, import tableau_colormap.
import matplotlib.pyplot as plt
import tableau_colormap
x = [i+1 for i in range(10)]
y = [i+10 for i in range(10)]
c = [f'C{i}' for i in range(10)]
plt.bar(x, y, color=c)
plt.show()
Installation
# Using pip
pip install tableau-colormap
# Using uv
uv add tableau-colormap
FAQ
I get a linter warning / My formatter removes import tableau_colormap
Since the imported tableau_colormap is not explicitly used, it's mistakenly identified as an unnecessary import. You can prevent it from being flagged as unused by explicitly calling tableau_colormap.set_colormap() as shown below. Although this execution is functionally meaningless (no-op), run it immediately after the import, or wherever necessary.
import tableau_colormap
tableau_colormap.set_colormap()
Legal Disclaimer / Note on Copyright
This library aims to replicate the color palettes used in Tableau products for use with Matplotlib in Python.
Important Notice: This project is unofficial and is not affiliated with, endorsed by, or sponsored by Tableau Software, LLC or Salesforce, Inc.
This library is released under the MIT License, see LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tableau_colormap-0.1.0.tar.gz.
File metadata
- Download URL: tableau_colormap-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6f4f6dbac962b909af7c8123dbdc64bc8a334e0b7f9b26181fc5fe411772794
|
|
| MD5 |
518ec184dc36f9c313dbcce44187f1b3
|
|
| BLAKE2b-256 |
f2e339ababa1df73157407bab420292975e81f0b69bbf77e2faa9177553c0c39
|
File details
Details for the file tableau_colormap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tableau_colormap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc4f7da43665447b98693fd2b1a13755724c5f43dfa6278efa2291f274ce0417
|
|
| MD5 |
e9d33cd46fa383498549d5f37982778f
|
|
| BLAKE2b-256 |
af49b0d2e812083e5da3b124aa2c236f291f7e404c69bb9ce2892f1e19996723
|