title: How to graph two plots side by side using matplotlib (no pandas)
body: <p>I am totally out of my comfort zone, but I have been asked to graph some data side by side. I managed to graph my data into charts, but I can't figure out how to get them to be graphed side by side. I have read about using <code>plt.subplot</code> but I have not been able to use it successfully (It just gives me blank graphs). Here is my code for the two graphs: </p>
  
  <pre><code>
  def autolabel(rects):
      for rect in rects:
          height = rect.get_height()
          ax.annotate('{}'.format(height),
                      xy=(rect.get_x() + rect.get_width() / 2, height),
                      xytext=(0, 3),  # 3 points vertical offset
                      textcoords="offset points",
                      ha='center', va='bottom')
  
  
  plt.rcParams['figure.figsize']=(7,6)
  labels = monthNames
  
  x = np.arange(len(labels))  # the label locations
  width = 0.35  # the width of the bars
  
  fig, ax = plt.subplots()
  rects1 = ax.bar(x - width/2, financeMonthlyDefects, width, label='Defects', color = 'r')
  rects2 = ax.bar(x + width/2, financeMonthlyDeployments, width, label='Deployments',)
  
  # Add some text for labels, title and custom x-axis tick labels, etc.
  ax.set_title('Finance Systems Deployments/Defects')
  ax.set_xticks(x)
  ax.set_xticklabels(labels)
  ax.legend()
  ax.set_xlabel('Iteration Month &amp; Year')
  plt.setp(plt.xticks()[1], rotation=30, ha='right') # ha is the same as horizontalalignment
  
  autolabel(rects1)
  autolabel(rects2)
  
  ### BEGIN GLOBAL FINANCE ###
  plt.rcParams['figure.figsize']=(7,6)
  labels = monthNames
  
  x = np.arange(len(labels))  # the label locations
  width = 0.35  # the width of the bars
  
  fig, ax = plt.subplots()
  rects1 = ax.bar(x - width/2, globalFinancingMonthlyDefects, width, label='Defects', color = 'r')
  rects2 = ax.bar(x + width/2, globalFinancingMonthlyDeployments, width, label='Deployments',)
  
  # Add some text for labels, title and custom x-axis tick labels, etc.
  ax.set_title('Global Finance Deployments/Defects')
  ax.set_xticks(x)
  ax.set_xticklabels(labels)
  ax.legend()
  ax.set_xlabel('Iteration Month &amp; Year')
  plt.setp(plt.xticks()[1], rotation=30, ha='right') # ha is the same as horizontalalignment
  
  autolabel(rects1)
  autolabel(rects2)
  
  </code></pre>
  
  <p>This is how it is output now: <a href="https://i.stack.imgur.com/2qm28.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2qm28.png" alt="Vertically stacked :("></a></p>