Last active
December 30, 2015 06:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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