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.

Styles are adapted from CarbonPlan Style.

Installation

pip install tuesd4y-styles

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
  • carbonplan_dark

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.

Building

python -m build
python -m twine upload dist/*

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.1.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.1-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuesd4y_styles-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8c8aa81011d2e4913cec3f681f1c3512bb2dc3f20df8917449f144a7b437e4c2
MD5 211de5a5683adc043b7d657cc3161bfc
BLAKE2b-256 98b30e9ae465e7f7f9aab8207f2c3015f716d685722a7a54bfe2b69edec5da3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuesd4y_styles-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a2254fb926f6f92335e216a741205183338c5a8b2b0e5898008c49260f4fe96
MD5 11a63e188bc5d10bff74e1085437631e
BLAKE2b-256 bfc44c0f5de11fc93f4cac3c5ddbc66ce6c48c22a1862ac197822114616d263d

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