Skip to content

Instantly share code, notes, and snippets.

@durden
Last active December 30, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durden/7788315 to your computer and use it in GitHub Desktop.
Save durden/7788315 to your computer and use it in GitHub Desktop.
Useful snippet on how to use partial functions in Python to improve readabliity of matplotlib call
import matplotlib.pyplot as plt
from functools import partial
set_title = partial(plt.suptitle, fontweight='bold', fontsize=12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment