plot styles for matplotlib and altair
A collection of plotting styles for Matplotlib and Altair.
pip install "carbonplan[styles]"
There are currently two separate styles/themes available in this package:
carbonplan_dark
: black background, lighter colorscarbonplan_light
: white background, darker colors
Both styels/themes are automatically made available in Matplotlib and Altair.
from carbonplan import styles
styles.mpl.set_theme(style='carbonplan_dark')
import altair as alt
alt.themes.enable('carbonplan_dark')
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.
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.