title: Overlapping matplot Bar Graphs?
body: <p>I'm learning matplot in python and I want to make a bar graph with side-by-side bars. My plot is currently overlapping for some reason. </p>
  
  <p><a href="https://i.stack.imgur.com/Yamzb.png" rel="nofollow noreferrer">Graph</a></p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  n_groups = 7
  means_frank = (82, 75, 86, 63, 90, 73 ,88)
  means_alex = (91, 92, 80, 73, 83, 91, 71)
  means_joe = (72, 42, 50, 33, 63, 34, 54)
  
  
  fig = plt.figure()
  ax = fig.add_subplot(111)
  
  
  index = np.arange(n_groups)
  bar_width = 0.27
  opacity = 0.8
  
  rects1 = ax.bar(index,means_frank,bar_width,color='b', label="Frank")
  
  rects2 = ax.bar(index,means_alex,bar_width,color='g', label="Alex")
  
  rects3 = ax.bar(index,means_joe,bar_width,color='r', label="Joe")
  
  plt.ylabel('Scores')
  plt.title('Test Scores')
  plt.xticks([0, 5, 6], ["Assignments --&gt;", "&lt;-- Midterm", "Final"])
  plt.legend()
  
  plt.tight_layout()
  
  
  plt.show()
  </code></pre>
  
  <p>How can I make these 3 different plots appear side by side instead of overlapped?</p>
  
  <p>Thanks!</p>