An open API service indexing awesome lists of open source software.

https://github.com/klieret/simple-science-style

A simple style for matplotlib.
https://github.com/klieret/simple-science-style

matplotlib matplotlib-style matplotlib-style-sheets matplotlib-styles

Last synced: about 2 months ago
JSON representation

A simple style for matplotlib.

Awesome Lists containing this project

README

          

# Simple Scientific Style for Matplotlib

[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/klieret/simple-science-style/main.svg)](https://results.pre-commit.ci/latest/github/klieret/simple-science-style/main)
[![Check Markdown links](https://github.com/klieret/simple-science-style/actions/workflows/check-links.yaml/badge.svg)](https://github.com/klieret/simple-science-style/actions/workflows/check-links.yaml)

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:

```python
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](examples/sss1.jpg)

## Other examples

Here's some other stylesheets that I like:

- https://github.com/garrettj403/SciencePlots
- https://github.com/dhaitz/matplotlib-stylesheets
- https://github.com/nschloe/matplotx