Skip to content

garland-culbreth/github-matplotlib-theme

Repository files navigation

GitHub styles for Matplotlib

Github themed stylesheets for Matplotlib. Colors selected from the primer palette. Styles strongly inspired by Seaborn.

Installation and Use

Download the mplstyle files and save them to your Matplotlib style library. To locate your Matplotlib style library, run:

import matplotlib
matplotlib.get_configdir()

in an active environment. In the directory returned by the command, look for a subdirectory named stylelib; you may need to create one. Save the downloaded .mplstyle files in the stylelib directory.

Once the styles are in mpl_configdir/stylelib you can load them with plt.style.use(). For example:

import matplotlib.pyplot as plt
plt.style.use("github-dimmed")

The styles work best when used together with Seaborn, especially sns.despine().

All styles have a font stack that attempts to use Roboto, then falls back on Helvetica or Arial, then falls back on Matplotlib defaults. Roboto is available for free on Google fonts.

Examples

github-light

github-light

github-light-talk

github-light-talk

github-dimmed

github-dimmed

github-dimmed-talk

github-dimmed-talk

About

GitHub inspired color themes for Matplotlib

Resources

License

Stars

Watchers

Forks

Packages

No packages published