title: Python Matplotlib - how to specify values on y axis?
body: <p>I am new to Python and I need to generate a graph using pyplot and matplotlib like the one in the attached picture. So far I tried it like this:</p>
  
  <pre><code> import matplotlib.pyplot as plt
   import numpy as np
  
   x = np.array([0,1,2,3])
   y = np.array([20,21,22,23])
   my_xticks = ['John','Arnold','Mavis','Matt']
   plt.xticks(x, my_xticks)
   plt.plot(x, y)
   plt.show()
  </code></pre>
  
  <p>But my problem is how can I specify a different number of values on the y axis different from the number of values on the x axis? And maybe specify them as an interval with 0.005 difference instead of a list? Many thanks! <img src="https://i.stack.imgur.com/GIaTz.png" alt="enter image description here"></p>