iPython Magic for Easy Dark/Light Figures
Project description
easydarkfigs - iPython Magic for easy Dark/Light Matplotlib figures
Installation
easydarkfigs
can be installed through pip via
pip install easydarkfigs
Usage
Within an active iPython or Jupyter environment:
import easydarkfigs
Then, at the beginning of a cell where a Matplotlib figure is created:
%%savefig_dark_light figname.ext
# Code
# to
# create
# figure
This will save two versions of the created figure, using the easy-dark
and easy-light
Matplotlib style files
included with this package.
To customize these default styles, edit them in your matplotlib directory.
To change the default figure save location or styles to use:
%set_darkstyle new-style
%set_darkfigdir my/dir/
%set_lightstyle new-style
%set_lightfigdir my/dir/
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
easydarkfigs-0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for easydarkfigs-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7100dba3164cd9fcb2e9e406f58449d6fb30d9037f4c637ce62686471a1f28e3 |
|
MD5 | 0a1b0d4cfbf8d15ebf6598329ef3b70e |
|
BLAKE2b-256 | 6da66c50fa0c08836a557d3c92b2cd5e5e956bfface0b216e85dd52124cac3bc |