title: Plotting Histogram with given x and y values
body: <p>I am trying to plot a histogram that lines up every x value with the y value on the plot. I have tried to use multiple resources, but unfortunately I wasn't able to find anything. This is the best way I could code to make a histogram.</p>
  
  <pre><code>x = (1,2,3,4,5)
  y = (1,2,3,4,5)
  
  h=plt.hist(x,y)
  plt.axis([0, 6, 0, 6])
  plt.show()
  </code></pre>
  
  <p>I want a graph that looks like the image below without those a's on x-axis:</p>
  
  <p><a href="https://i.stack.imgur.com/kEwEP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kEwEP.png" alt="enter image description here"></a></p>