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
from tuesd4y_styles import colors, mpl

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuesd4y_styles-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 034990bfb02d3d48489a1d0d8d497f6c980d7461aa82c10118b8dc8bb36b71ff
MD5 95b2701f899dcb7834da5306d9def82e
BLAKE2b-256 9d95539e805247958d9529ab4c8ae1c2bfdafcb461fa693a2c1c0a76b7118455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuesd4y_styles-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7ed1db6def9eb007a8779ef2e1e5b86c131959e9c0446731cf972b47a3dfe7
MD5 a1f6ff202253ffc91328087494846da7
BLAKE2b-256 67cd6ae20b20de589765f04d94616833c0e16aad81333e8c5d428336daf9c12b

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