Aesthema
Aesthema provides modern & visually appealing colormaps for Matplotlib.
Matplotlib is a great package for visualizations, but we've all been there when you start creating your own colormaps because the default ones look not really appealing or you need to stick to your already existing theme. This is where this small package comes into play. Instead of creating your own colormaps all the time, you can use the provided colormaps or you can also easily create your own colormaps either by using the provided colors or any RGB color.
Currently available colors:
Currently available colormaps:
Quickstart
You can install the package using pip:
pip install aesthema
Let's take a look at some examples:
import numpy as np
import matplotlib.pyplot as plt
from aesthema import use_colormap
use_colormap()
x = np.linspace(0, 2 * np.pi, 100)
plt.figure()
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x))
plt.plot(x, np.sin(x + np.pi / 4))
plt.plot(x, np.cos(x + np.pi / 4))
plt.plot(x, np.sin(2 * x))
plt.plot(x, np.cos(2 * x))
plt.title("Sine and Cosine")
plt.xlabel("x")
plt.ylabel("Amplitude")
plt.show()
In this example, we use the default colormap. If you want to use a different colormap, just specify it when calling use_colormap, e.g.:
from aesthema import use_colormap, Colormaps
use_colormap(Colormaps.PASTEL)
You can also create your own custom colormap using either the colors provided in this package or any RGB color:
from aesthema import create_colormap, use_colormap, Colors
my_colormap = create_colormap([Colors.RED, Colors.ORANGE, Colors.LEMON, (141, 215, 127), Colors.LIGHT_OCEAN, (47, 72, 88)])
use_colormap(my_colormap)
Contributing
You created a nice colormap that you want to share with others? Awesome! Create a pull request and we will add it.
Metadata
Release files for aesthema 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aesthema-0.1.1.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aesthema-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / aesthema-0.1.1.tar.gz
| Download URL | aesthema-0.1.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31a6ce9071cb90f95647d525f1d238158de78793767ed10d25b608689559d08a
|
|
BLAKE2b-256 checksum How to use checksums |
37afe325bf7f35780b7b5084b2ac5847e11735683b50c15aed571434090fa1c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / aesthema-0.1.1-py3-none-any.whl
| Download URL | aesthema-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba8dbf194167956ceb4df542028de6b6f34b5db5f93230014dbf6bbc0818ee47
|
|
BLAKE2b-256 checksum How to use checksums |
b83dfab71d481fa7ad1cb9f300d7458962dc8b77b6a45c6d6e43f4e8ee826b7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for aesthema 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.