title: Plotting in python3 (histogram)
body: <p>I am trying to create a histogram from an array of grades. All the grades are one of the possible 7-scale (-3, 0, 2, 4, 7, 10, 12). </p>
  
  <p>I am using the below code to generate the plot, however I cannot identify a way to put the x-axis label on the middle of the bars, remove the space in the middle of the plot and maybe put a small space between the bars...</p>
  
  <pre><code>import matplotlib.pyplot as plt
  finalGrades = [-3, -3, 10, 2, 10, 0, 7, 7, 12, -3, 7, 0, 12, 12, 12 ,12, 12, 0, 0, 0, 4]
  plt.hist(finalGrades, bins=8)
  plt.xticks([-3, 0, 2, 4, 7, 10, 12])
  plt.title("Final Grades plot")
  plt.xlabel("All possible grades")
  plt.ylabel("Number of students")
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xhvB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xhvB6.png" alt="enter image description here"></a></p>