Skip to main content

CarbonPlan plotting styles

Project description

carbonplan / styles

plot styles for matplotlib and altair

GitHub Build Status MIT License

A collection of plotting styles for Matplotlib and Altair.

Try it out on Binder: Binder

install

pip carbonplan-styles

usage

There are currently two separate styles/themes available in this package:

  1. carbonplan_dark: black background, lighter colors
  2. carbonplan_light: white background, darker colors

Both styels/themes are automatically made available in Matplotlib and Altair.

matplotlib

import matplotlib.pyplot as plt
from carbonplan.styles.mpl import dark  # carbonplan_dark

plt.style.use(dark)

Note: The install of this package adds Matplotlib style sheets to ~/.config/matplotlib. This will only happen once and future updates will need to be done manually.

altair

import altair as alt

alt.themes.enable('carbonplan_dark')

license

All the code in this repository is MIT licensed. We include attribution for this content, and we please request that you also maintain that attribution if using this data.

about us

CarbonPlan is a non-profit organization that uses data and science for carbon removal. We aim to improve the transparency and scientific integrity of carbon removal and climate solutions through open data and tools. Find out more at carbonplan.org or get in touch by opening an issue or sending us an email.

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

carbonplan-styles-0.0.1.tar.gz (67.9 kB view details)

Uploaded Source

Built Distribution

carbonplan_styles-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file carbonplan-styles-0.0.1.tar.gz.

File metadata

  • Download URL: carbonplan-styles-0.0.1.tar.gz
  • Upload date:
  • Size: 67.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for carbonplan-styles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a60765f0aff06767f6f98815eaf021f3fc36bea40f9723f92cdfcb3ac943beb1
MD5 0b9b75a1168fc9feb40e454ee1322ea1
BLAKE2b-256 ae84eadba2d9e1c1aaf3b71f3786c7329017f72f05c71e56c4db25bda821c80f

See more details on using hashes here.

Provenance

File details

Details for the file carbonplan_styles-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: carbonplan_styles-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for carbonplan_styles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f86a1b7ca5e9522b3689702647540008f5069e8b52408a003eaf07de4adb32e8
MD5 d0b25f7cab2631a84947e0c3f2fbedd1
BLAKE2b-256 c856c2733f79d2da9dbd3feb799f24ca3b65ff34421538e4c8956b088a7c1db8

See more details on using hashes here.

Provenance

Supported by

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