Skip to main content

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

Apache 2.0

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

spektra-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spektra-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spektra-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for spektra-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a7cd92551e62c720f42efb96d8a0eb0cca7e44607b2c12f4c85d31b76600d19c
MD5 8030ae4256b2a0cfda7e9e2de6f17448
BLAKE2b-256 eb82cb6eaaeeb8c962162bfde18110be6b3090cf79f67db9c942c5ed3bb800fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spektra-0.1.1-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

Hashes for spektra-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f6d7c4516eb0ad47adef098b477cb3644402ee4d278c6cfdbb40f458a73b9f7
MD5 c90482e2c9c305cdfaf0d7b1c998588a
BLAKE2b-256 02742690c3bc08b43e3e0a9c95f0548e86f7ce44edd83fb64e3250ac33de1206

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