title: Why is my grouped bar graph not showing all 3 bars and how to make it more neater?
body: <p>This is in connection to my earlier question with the link here: <a href="https://stackoverflow.com/questions/72960167/how-do-i-add-labels-and-trace-lines-into-my-grouped-bar-graph?noredirect=1#comment128865858_72960167">How do I add labels and trace lines into my grouped bar graph?</a></p>
  <p>The dataframe used is the same.</p>
  <p>I have decided to use this code in order to label my group bar graph. It produces a graph with all bars annotated with the correct data. However, it ended up like this:</p>
  <p><a href="https://i.stack.imgur.com/6pI4V.png" rel="nofollow noreferrer">This graph shows only two bars being displayed and third one not aligned together with the other bars.</a></p>
  <p>I have even tried plt.figure(figsize()) to resize my graph to no avail.</p>
  <p>Is there an explanation into why only 2 boxes were displayed for each x-axis ticks and is there a way to resolve this?
  Thanks!</p>
  <p>This is my code to refer to:</p>
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  import numpy as np
  
  df = pd.read_csv(r'C:\Users\admin\Desktop\Customer_list_practice.csv')
  months = df.columns.values.tolist()
  months = months[1:]
  
  # Increase size of plot in jupyter
  
  plt.figure(figsize=[15,14])
  
  labels = months
  cus_1 = list(df.loc[0])
  cus_1 = cus_1[1:]
  cus_2 = list(df.loc[1])
  cus_2 = cus_2[1:]
  cus_3 = list(df.loc[2])
  cus_3 = cus_3[1:]
  
  # Increase size of plot in jupyter
  
  plt.rcParams[&quot;figure.figsize&quot;] = (10,10)
  
  
  x = np.arange(len(labels))  # the label locations
  width = 0.20  # the width of the bars
  
  fig, ax = plt.subplots()
  rects1 = ax.bar(x - width/2, cus_1, width, label='1')
  rects2 = ax.bar(x + width/2, cus_2, width, label='2')
  rects3 = ax.bar(x - width/2, cus_3, width, label='3')
  
  # Add some text for labels, title and custom x-axis tick labels, etc.
  ax.set_ylabel('Sales (S$)')
  ax.set_title('Sales from each customers')
  ax.set_xticks(x, labels)
  ax.legend()
  
  ax.bar_label(rects1, padding=3)
  ax.bar_label(rects2, padding=3)
  ax.bar_label(rects3, padding=3)
  
  fig.tight_layout()
  plt.legend(bbox_to_anchor=(-0.05,1), loc=1, prop={'size': 19})
  plt.show()
  </code></pre>