Skip to main content

CarbonPlan plotting styles

Project description

CarbonPlan monogram.

carbonplan / styles

plot styles for matplotlib and altair

CI PyPI License: MIT

A collection of plotting styles for Matplotlib and Altair.

Try it out on Binder: Binder

install

pip install "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')

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 nonprofit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of climate solutions with 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.5.1.tar.gz (144.0 kB view hashes)

Uploaded Source

Built Distribution

carbonplan_styles-0.5.1-py3-none-any.whl (73.3 kB view hashes)

Uploaded Python 3

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