I would like to add a custom tick in a matplotlib
figure. Currently, I add my ticks with the following command (for instance):
axis.set_yticks([0.5,0.6,0.7,0.8,0.9,1.0])
I would like to be able to do:
axis.set_yticks({ 1.0 : "some custom text"})
So that instead of 1.0
, at that position some custom text
is shown.
Note: I've found this question from 4 years ago. I am asking basically the same thing with the hope there's a better way of doing it: Adding a custom tick and label