title: The Bars of my Histogram are not showing and are cut off
body: <p>I wrote down <a href="https://i.stack.imgur.com/XOvgu.png" rel="nofollow noreferrer">this</a> code, the program runs perfectly without any errors, but the bars of the histogram are cut off at 1.0 on the y axis. Why is this happening? Thanks for the help!</p>
  
  <p>My Code:</p>
  
  <pre><code>list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  plt.hist(list1, bins=10, rwidth=0.9)
  plt.ylabel("y")
  plt.xlabel("x")
  plt.show()
  </code></pre>
  
  <p>Edit:
  Ok, I am giving it 10 for bins. But if I change the value of bins to let's say...</p>
  
  <pre><code>plt.hist(list1, bins=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
  </code></pre>
  
  <p>I get this</p>
  
  <p><img src="https://i.stack.imgur.com/qw7yH.png" alt="this">. </p>
  
  <p>Now what?</p>
  
  <p>NOTE: I want to use plt.hist to make a histogram, I don't want to use plt.bar to make a bar.</p>