I want to make some modifications to a few selected tick labels in a plot.
For example, if I do:
label = axes.yaxis.get_major_ticks()[2].label label
If you do not work with fig and ax and you want to modify all labels (e.g. for normalization) you can do this:
fig
ax
labels, locations = plt.yticks() plt.yticks(labels, labels/max(labels))