Skip to main content

Applies Tableau's new color maps with only an import statement

Project description

GitHub License PyPI - Version PyPI Downloads

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()

demo

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


Download files

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

Source Distribution

tableau_colormap-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tableau_colormap-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for tableau_colormap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6f4f6dbac962b909af7c8123dbdc64bc8a334e0b7f9b26181fc5fe411772794
MD5 518ec184dc36f9c313dbcce44187f1b3
BLAKE2b-256 f2e339ababa1df73157407bab420292975e81f0b69bbf77e2faa9177553c0c39

See more details on using hashes here.

File details

Details for the file tableau_colormap-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tableau_colormap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc4f7da43665447b98693fd2b1a13755724c5f43dfa6278efa2291f274ce0417
MD5 e9d33cd46fa383498549d5f37982778f
BLAKE2b-256 af49b0d2e812083e5da3b124aa2c236f291f7e404c69bb9ce2892f1e19996723

See more details on using hashes here.

Supported by

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