Github themed stylesheets for Matplotlib. Colors selected from the primer palette. Styles strongly inspired by Seaborn.
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.