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/
The code also makes a boolean variable is_dark available during execution, the value of which changes depending on which version of the plot is being created.
%%savefig_dark_light figname.ext
if is_dark:
title = 'This Is A Dark Plot'
else:
title = 'This Is A Light Plot'
plt.title(title)
Metadata
Release files for easydarkfigs 0.11
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 | |
|---|---|---|---|---|
| easydarkfigs-0.11.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easydarkfigs-0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / easydarkfigs-0.11.tar.gz
| Download URL | easydarkfigs-0.11.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
609a8b1f76090dfa30c3526a4e26a9969736df413ba9004e8a3b0a301d7575c9
|
|
BLAKE2b-256 checksum How to use checksums |
4aa59c0054ed0a4cb102eb036374816e04b0b54a57f9a48cf32069b9ae46f16b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.7.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.4
|
Release files / easydarkfigs-0.11-py3-none-any.whl
| Download URL | easydarkfigs-0.11-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47a7e7d36d195d9328a7ca5705f542d33b193dae830f238136a895a7394a6f9e
|
|
BLAKE2b-256 checksum How to use checksums |
cd9efbd51ef20f498290f00e84ab48d64c6f0d89bc0f1f212cb41bc7d3924440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.7.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.4
|
Security for easydarkfigs 0.11
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.