title: Adding group bar charts as subplots in plotly
body: <p>I want to create grouped (<strong>barmode='group'</strong>) bar chart subplots in plotly. Now the problem is that plotly doesn't create bar charts as traces. Instead grouped bar charts are created as lists of Bar traces. Because of this, I don't know how to create a figure that contains grouped bar charts as subplots (i.e. add a grouped bar chart using <strong>figure.append_trace()</strong>).</p>
  
  <p>For example, how can I create subplots using bar charts created in <a href="https://plot.ly/python/bar-charts/#grouped-bar-chart" rel="noreferrer">this sample</a>:
  </p>
  
  <pre class="lang-py prettyprint-override"><code>import plotly.plotly as py
  import plotly.graph_objs as go
  trace1 = go.Bar(
      x=['giraffes', 'orangutans', 'monkeys'],
      y=[20, 14, 23],
      name='SF Zoo'
  )
  trace2 = go.Bar(
      x=['giraffes', 'orangutans', 'monkeys'],
      y=[12, 18, 29],
      name='LA Zoo'
  )
  data = [trace1, trace2]
  layout = go.Layout(
      barmode='group'
  )
  fig = go.Figure(data=data, layout=layout)
  plot_url = py.plot(fig, filename='grouped-bar')
  </code></pre>