I want to create a set of subplots where each subplot is grouped bar chart. For example, each of the bar charts I want to add will look something like this:
cub_trace = go.Bar( x=[config], y=[config], name='cub' ) libpp_trace = go.Bar( x=[config], y=[config], name='libpp' ) data = [cub_trace, libpp_trace] all_data.append(data) layout = go.layout(barmode='group')
Now the problem is grouped bar charts are represented by a pair of a data list and a layout object. While subplots, afaik, only allow appending traces, for example:
fig.append_trace(box_1, 1, 1) fig.append_trace(box_2, 1, 2) fig.append_trace(heatmap, 2, 1)
So how can I make a subplot that contains bar charts as subplots?
I am new to plotly and I tried to find way around this but couldn’t. Any help would be much appreciated.