title: Overlap of Group Barcharts in matplotlib
body: <p>Dataset:</p>
  
  <p><a href="https://i.stack.imgur.com/zTLpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zTLpd.png" alt="enter image description here"></a></p>
  
  <p>Code to plot:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  # data to plot
  n_groups = 6
  GreenTaxi = pivot_df['GreenTaxi'].tolist()
  YellowTaxi = pivot_df['YellowTaxi'].tolist()
  Uber = pivot_df['Uber'].tolist()
  
  # create plot
  fig, ax = plt.subplots()
  index = np.arange(n_groups)
  bar_width = 0.35
  opacity = 0.8
  
  rects1 = plt.bar(index, GreenTaxi, bar_width,
                   alpha=opacity,
                   color='b',
                   label='GreenTaxi')
  
  rects2 = plt.bar(index + bar_width, YellowTaxi, bar_width,
                   alpha=opacity,
                   color='g',
                   label='YellowTaxi')
  
  rects3 = plt.bar(index + bar_width, Uber, bar_width,
                   alpha=opacity,
                   color='r',
                   label='Uber')
  
  plt.xlabel('Month')
  plt.ylabel('Ride Counts')
  plt.title('Rides By Month')
  plt.figure(figsize=(5,5))
  plt.xticks(index + bar_width,pivot_df['MonthName'].tolist() )
  plt.legend()
  plt.show()
  </code></pre>
  
  <p>Output:</p>
  
  <p><a href="https://i.stack.imgur.com/TkzI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TkzI6.png" alt="enter image description here"></a></p>
  
  <p>The green and red bar charts are overlapping and more over MonthName does not come in the x label ,only  numerics are coming . Could you please advise on th eissue.</p>