Skip to main content

Tuesd4y styling utilities for Python. Adapted from CarbonPlan.

Project description

Colors

A Python package providing custom color palettes and themes for data visualization with matplotlib and seaborn.

Installation

pip install .

Usage

Basic Usage

# Import the required modules
import colors.mpl as mpl
import colors.colors as colors

# Set the theme (available themes: carbonplan_light)
mpl.set_theme(style='carbonplan_light')

# Load colors into your local namespace
lcs = locals()
lcs.update(**colors.light)

# Now you can use the colors in your plots
import matplotlib.pyplot as plt
import seaborn as sns

# Example with scatter plot using predefined colors
plt.scatter(*zip(*cluster_1), color=red, label='Cluster 1')

# Example with heatmap using custom colormaps
sns.heatmap(city_corr_matrix, annot=True, cmap='redteal_light_r', center=0, ax=ax)

Available Themes

  • carbonplan_light

Available Color Palettes

The package provides color palettes through the colors.light module. Colors can be accessed directly after updating the local namespace as shown in the usage example.

Available Colormaps

  • redteal_light_r: A reversed red-teal colormap suitable for correlation matrices and heatmaps

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT 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

tuesd4y_styles-0.1.0.tar.gz (69.5 kB view details)

Uploaded Source

Built Distribution

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

tuesd4y_styles-0.1.0-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

Details for the file tuesd4y_styles-0.1.0.tar.gz.

File metadata

  • Download URL: tuesd4y_styles-0.1.0.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for tuesd4y_styles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 18a57678abf7c0bcf1b087231b3fb5b5eda5bf2e4bf6a13b0ba87b2aa6e873e4
MD5 d992b80acaab173c0de4679c322dead8
BLAKE2b-256 183e59ae204b3ef970e6b16ae4ea3bfe586322735d0b2246c71d57e2d178948f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuesd4y_styles-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for tuesd4y_styles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d11080c4ca91c124f775b1154c698bf9d8ff51d11014e4181a7008cc2999d250
MD5 81e5bcdad1d26b4a4b1667e9ee0ea09c
BLAKE2b-256 1aeba6964efbb460068a759e519c03ad84c63a010e3b977b5a74e4f90025e2b8

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