Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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

from carbonplan import styles

styles.mpl.set_theme(style='carbonplan_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.

Files for carbonplan-styles, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size carbonplan_styles-0.1.0-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size carbonplan-styles-0.1.0.tar.gz (66.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page