title: matplotlib not displaying the graph bars
body: <p>I'm trying to get the plot to show on a graph but it does not show anything for some reason. I have properly imported the matplotlib library, I am properly getting the values from the function and when I pass those values to the function where I want the plot to be shown it displays blank image. To show that I am getting the correct values I have used print along with plotting commands the values are getting printed but not the plot Here's the code. I was able to get the plot correct using </p>
  
  <pre><code>def GetCounts(data):
      return (data['Sex'].value_counts())
  
  def Get_Plot(Points):
      _x1 = Points[0]
      _x2 = Points[1]
      _y = (_x1 + _x2) - 200
      print('male' + ' ' + str(_x1) + '\n','female' + ' '+ str(_x2), _y)
      plt.bar(height = _x1, tick_label = 'Male', left = _x1)
      plt.xlabel('Counts of people according to Sex')
      plt.ylabel('Number of people')
      plt.show()
  Counts   = GetCounts(titanic)
  Get_Plot(Counts)
  </code></pre>
  
  <p>I'm trying to get 2 bars placed in there 'Male' and 'Female' and I not sure how I will be able to. and with the code above I am only able to put only one of it.
  Please help thanks in advance.</p>