Skip to content

Instantly share code, notes, and snippets.

@durden
Last active December 30, 2015 06:19
Show Gist options
  • Select an option

  • Save durden/7788315 to your computer and use it in GitHub Desktop.

Select an option

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