Skip to content

A nice default matplotlib plotting style obeying KIT-ish design regulations.

Notifications You must be signed in to change notification settings

thomascamminady/kitstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitstyle

Use a nice KIT-ish theme for matplotlib plots.

Install

Place kitish.mplstyle and kitishnotex.mplstyle in ~/.config/matplotlib/stylelib/

Usage

In Python, do

import matplotlib.pyplot as plt
plt.style.use("kitish")                      #or "kitishnotex" to avoid text rendering with TeX.

fig,ax = plt.subplots()
ax.plot([0,1,2],[1,2,1],label="cars")
ax.plot([0,1,2],[2,1,2],label="bikes")
ax.plot([0,1,2],[2,2,0],label="birds")
ax.plot([0,1,2],[0,1,1],label="cats")
plt.legend()
ax.set_title(r"Something $\alpha+\beta=\gamma$.")
ax.set_ylabel("Another label")
ax.set_xlabel(r"Source Sans Pro is a nice font.")
plt.savefig("example.png")

to get the following output:

Alt text

For comparison, here's the original plot when omitting plt.style.use("kitish"). Alt text

About

A nice default matplotlib plotting style obeying KIT-ish design regulations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published