Fancy labelling / tickering of isolines

Sometime ago i do something very similar jeje, a qt-matplotlib gui for

using annotate:

def plot_labels(self, x, y, label, angle=0):
self.axes2D.axes.annotate(label[i], (x[i], y[i]), rotation=angle[i], size=“xx-small”, horizontalalignment=“center”, verticalalignment=“center”))

in my case i only use rotation, initial position and alignment, but there are more options, like backgroundcolor to erase the line below

cheers, jj