Cyberpunk-style Matplotlib/Seaborn and Plotly themes
Project description
Styles for Matplotlib, Seaborn and Plotly.
Quickstart
pip install spektra
Usage
import spektra as sk
import matplotlib.pyplot as plt
# One of ['ember', 'neon', 'ash', 'raiden', 'sakura']
sk.style('ember')
plt.plot([1, 2, 3], [1, 4, 9])
plt.show()
Quickview:
print(sk.get_available_themes())
# ['sakura', 'neon', 'ash', 'raiden', 'ember']
print(sk.get_theme())
# ember
print(sk.get_cmap())
# <matplotlib.colors.LinearSegmentedColormap object at 0x10d6ae750>
print(sk.get_palette(n=5))
# ['#FF003C', '#FF00FF', '#00F3FF', '#FFEA00', '#00FF41']
# Theme config is in this dict.
print(sk.get_config())
# {'bg': '#050505',
# 'accent': '#FF003C',
# 'secondary': '#9D0025',
# 'text': '#FF003C',
# 'grid': '#1A0006',
# 'alpha': 0.4,
# 'op': 0.4,
# ...
Theme Files
All theme files are stored under their respective spektra/themes/{THEME_NAME}.json file.
They're stored as JSON for ease of reusability between Maplotlib/Seaborn and Plotly.
spektra scans the directory, so adding a .json file to it will register a new theme.
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
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 spektra-0.1.0.tar.gz.
File metadata
- Download URL: spektra-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03696e0c8036fad41e6ac8b55db05b6da15309f36004eb0de093b89344536634
|
|
| MD5 |
b2dff0dce236e0e8ad6c4de1a3145d1c
|
|
| BLAKE2b-256 |
2b0fbdfdae652d191947119fab785643179f921332b7fa7cb9b2ed5fb2528198
|
File details
Details for the file spektra-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spektra-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a234787d8832540c9abc7a9965bb4449148e0dee17ceb03052278acd0efd7a7
|
|
| MD5 |
7bf3ed361dcb6598dd6c0335487de00f
|
|
| BLAKE2b-256 |
f64f2a5e6f2c06d986501a74755c7bbc5d8378b4b449607f36686aca9e81d84d
|