Skip to content

klieret/simple-science-style

Repository files navigation

Simple Scientific Style for Matplotlib

pre-commit.ci status Check Markdown links

A simple stylesheet for matplotlib because I'm unhappy with the default ones. There are some much more elaborate style sheets out there (see section below), but they often require to pip install a package and might be an overkill for a quick plot.

You can use this stylesheet as easy as this:

import matplotlib.pyplot as plt

plt.style.use('https://github.com/klieret/simple-science-style/raw/main/stylesheets/sss1.mplstyle')

And this is what it looks like:

example

Other examples

Here's some other stylesheets that I like: