title: set y axis to start from 0 in matplotlib
body: <p>I have a simple bar chart, which looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/GDNJr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GDNJr.png" alt="enter image description here"></a></p>
  
  <p>The code that produced it is:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  a = np.array([['c++','php'],
       [3,9]])
  y_pos = np.arange(len(a[0]))
  labels = np.arange(1,11,1)
  objects = a[1]
  ax = plt.bar(a[0], a[1], align='center', alpha=1)
  plt.xticks(y_pos, a[0])
  plt.ylabel('usage')
  plt.title('Programming Languange Usage')
  
  plt.show()
  </code></pre>
  
  <p>O made this bar chart, using <code>matplotlib</code>, the data is being taken from a <code>2x2 matrix</code>, the problem is, the <code>yaxis</code> start from 3 and stop at 9, I want it to start from 0 and stop at 10. The problem that causing this is because I set the <code>yticks</code> from the <code>matrix</code> it self, thus it gave me this number.</p>
  
  <p>Thee question is, how do I set the <code>yticks</code> to start from 0 and stop at 10 ?, I tried using <code>np.arange()</code> , and <code>pyplot.yticks</code>.</p>