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
def add_labels(axes, style=r'(%s)'): | |
""" | |
Adds figure labels (a), (b), (c), etc. to axes. | |
Must be called after plt.tight_layout(). | |
""" | |
alphabet = 'abcdefghijkl' | |
labels = [style % letter for letter in alphabet] | |
# EXTREME hack alert. |