title: Placing ticks on specific values
body: <p>Say I have a plot like the one below and I want to place <strong>Y ticks</strong> (and tick values) on specific locations. For example,   only on the highest value (<code>1.0</code>) and lowest value (<code>-1</code>). </p>
  
  <p>How can I do that?</p>
  
  <pre><code>t = np.arange(0.0, 100.0, 0.1)
  s = np.sin(0.1*np.pi*t)*np.exp(-t*0.01)
  
  fig, ax = plt.subplots()
  plt.plot(t,s)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Go1fI.png" alt="enter image description here"></p>