Skip to content

Instantly share code, notes, and snippets.

@npyoung
Created July 11, 2017 08:35
Show Gist options
  • Select an option

  • Save npyoung/1ff9202007ca1311eda1736a476c9586 to your computer and use it in GitHub Desktop.

Select an option

Save npyoung/1ff9202007ca1311eda1736a476c9586 to your computer and use it in GitHub Desktop.
Automatically label subplots in a figure
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