Skip to main content

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.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

easydarkfigs-0.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file easydarkfigs-0.6.tar.gz.

File metadata

  • Download URL: easydarkfigs-0.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for easydarkfigs-0.6.tar.gz
Algorithm Hash digest
SHA256 035c6523eab55bd790aea2314227a9ab3d0f61982488c79eacd1e44e6babef4d
MD5 cc069f63b5f8a667ea3626ba8077707b
BLAKE2b-256 5c04418fbae28c3b1b385e82a7389881fd9116969391db08487ad6b6c58a4d0e

See more details on using hashes here.

File details

Details for the file easydarkfigs-0.6-py3-none-any.whl.

File metadata

  • Download URL: easydarkfigs-0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for easydarkfigs-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd834ab4a69282ab0f1b15cc5a36fb250fe26875770843c05abe3771f6824e9
MD5 90d55e5221fc72aa18d20b4462a5b0b3
BLAKE2b-256 60773d21f7fe494f2ab5ffd3e454a15910056efe4c1135b23e63e683dfc4d75d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page