title: add custom tick with matplotlib
body: <p>I would like to add a custom tick in a <code>matplotlib</code> figure. Currently, I add my ticks with the following command (for instance):</p>
  
  <pre><code>axis.set_yticks([0.5,0.6,0.7,0.8,0.9,1.0])
  </code></pre>
  
  <p>I would like to be able to do:</p>
  
  <pre><code>axis.set_yticks({ 1.0 : "some custom text"})
  </code></pre>
  
  <p>So that instead of <code>1.0</code>, at that position <code>some custom text</code> is shown.</p>
  
  <p><strong>Note:</strong> 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:
  <a href="https://stackoverflow.com/questions/22245949/adding-a-custom-tick-and-label?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">Adding a custom tick and label</a></p>