Created
July 11, 2017 08:35
-
-
Save npyoung/1ff9202007ca1311eda1736a476c9586 to your computer and use it in GitHub Desktop.
Automatically label subplots in a figure
This file contains hidden or 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 label_subplots(axes): | |
| import string | |
| for idx, ax in enumerate(axes): | |
| ax.text(-0.1, 1.05, string.ascii_uppercase[idx], transform=ax.transAxes, | |
| size=20, weight='bold') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment