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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a57678abf7c0bcf1b087231b3fb5b5eda5bf2e4bf6a13b0ba87b2aa6e873e4
|
|
| MD5 |
d992b80acaab173c0de4679c322dead8
|
|
| BLAKE2b-256 |
183e59ae204b3ef970e6b16ae4ea3bfe586322735d0b2246c71d57e2d178948f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11080c4ca91c124f775b1154c698bf9d8ff51d11014e4181a7008cc2999d250
|
|
| MD5 |
81e5bcdad1d26b4a4b1667e9ee0ea09c
|
|
| BLAKE2b-256 |
1aeba6964efbb460068a759e519c03ad84c63a010e3b977b5a74e4f90025e2b8
|