April 16, 2021

139 words 1 min read

yobibyte/prettyplots

yobibyte/prettyplots

Design your own matplotlib stylefile interactively

repo name yobibyte/prettyplots
repo link https://github.com/yobibyte/prettyplots
homepage
language Jupyter Notebook
size (curr.) 51 kB
stars (curr.) 176
created 2021-04-20
license

prettyplots

Design your own matplotlib stylefile interactively

Tired of playing with font sizes and other matplotlib parameters every time you start a new project or write a new plotting function? Want all you plots have the same style? Use matplotlib configuration files!

Great! But how do I set them up? Use this repo! Start a notebook and play with the parameters, save them into a file and use it in all of your future projects! Super simple!

How to use?

Simple, start a notebook and follow the instructions. You will get a ‘prettyplots.mplstyle’ as a result.

Add this to your code to use the stylefile:

plt.style.use('./prettyplots.mplstyle')

You can try this remotely using Binder

Binder

comments powered by Disqus