def add_subfig_label(ax, label, size=14):
    """ Adds a subplot label to an axis."""
    ax.text(-0.1, 1, label, transform=ax.transAxes, fontsize=size,
        fontweight='bold', va='top', ha='right')
    return ax
