title: Plot a histogram in matplotlib (pandas) X and Y axes specifications
body: <p>For the rolling of a six sided dice, I need to randomly simulate the event 50 times and plot a histogram of results for each number on the dice while using number of bins=6</p>
  <p>I tried the following:</p>
  <pre><code>import random
   
  test_data = [0, 0, 0, 0, 0, 0] 
  n = 50 
  
  for i in range(n):
    result = random.randint(1, 6)
    test_data[result - 1] = test_data[result - 1] + 1
  
  plt.hist(test_data,bins=6)
  </code></pre>
  <p>Is there a way to plot the numbers of the dice on the x axis and  results for each number on the dice on the y axis?</p>