title: Matplotlib: last y tick label not visible with 0 margins
body: <p>I am drawing a cdf, where I want the y tick labels to be 0, .2, .4, .6, .8, 1.
  Here's how I'm achieving it. </p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  # some code
  
  fig, ax = plt.subplots(figsize=(14, 5))
  ax.set_yticklabels(np.around(np.arange(0, 1.1, step=0.2),1))
  plt.margins(0)
  ...
  plt.show()
  </code></pre>
  
  <p>This gives the following output: </p>
  
  <p><a href="https://i.stack.imgur.com/bghSD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bghSD.png" alt="enter image description here"></a></p>
  
  <p>When I comment out <code>plt.margins(0)</code>, I get the following figure: </p>
  
  <p><a href="https://i.stack.imgur.com/NoEG6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NoEG6.png" alt="enter image description here"></a></p>
  
  <p>Why am I not able to see the top most y tick label (1.0) in the first figure? How can I achieve it with 0 margins?</p>