Skip to content

Instantly share code, notes, and snippets.

View pgriewank's full-sized avatar

Philipp Griewank pgriewank

View GitHub Profile
@tacaswell
tacaswell / label_axes_iterate.py
Last active August 13, 2021 04:22
A quick little function to walk through the axes in a Figure instance and label each one with annotate.
import string
from itertools import cycle
from six.moves import zip
def label_axes(fig, labels=None, loc=None, **kwargs):
"""
Walks through axes and labels each.
kwargs are collected and passed to `annotate`