def annotate_axes(index, labels, points, offset_points, size, ax, **kwargs):
 for i in index:
  label = labels[i]
  point = points[i]
  offset = offset_points[i]
  ax.annotate(label, point, xytext=offset, textcoords='offset points', size=size, **kwargs)
 return ax

def annotate_axes ( index , labels , points , offset_points , size , ax , ** kwargs ) : for i in index : label = labels [ i ] point = points [ i ] offset = offset_points [ i ] ax . annotate ( label , point , xytext = offset , textcoords = 'offset points' , size = size , ** kwargs ) return ax
annotate axes with labels .