A color theme for matplotlib using the offical statworx design
Project description
Statworx Theme
A color theme plugin for the matplotlib library and all its derivatives, which automatically applies the official statworx color theme. This package also registers commonly used qualitative color maps (such as a fade from good to bad) for use in presentations.
Quick Start
Simply install a module with pip
by using the following command.
pip install statworx-theme
To apply the style, you must call the apply_style
function by typing:
from statworx_theme import apply_style
apply_style()
Gallery
There is an extensive gallery of figures that use the Statworx theme that you can draw inspiration from. You can find it here.
Custom Colors
You can also use a custom list of color for the color scheme beside the official statworx colors.
There is a convenience function for that which is described below.
This simply changes the colors.
In case you want to change the entire style you should implement your own .mplstyle
file (see this).
from statworx_theme import apply_custom_colors
custom_colors = [
DARK_BLUE := "#0A526B",
DARK_RED := "#6B0020",
GREY := "#808285",
]
apply_custom_colors(custom_colors)
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
Hashes for statworx_theme-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf0b9eb0df873e4f46f44e1bac7bb62ea5e3b94ce31d2332f7fbb2a8f2713f3 |
|
MD5 | 5de290774bea50abdc58f4e726a0ed90 |
|
BLAKE2b-256 | 749080ffdf17c7e373b925bed69df7e5c0406ca55c3cf44ac2c2dac3b927dc92 |