@classmethod
def common_plot(cls, traces, base, plot_traces=True, plot_exploitabilities=
    True, palette=None, with_regret=True, title=None):
    """
        Create a Plotly plot with trace and exploitability subplots.
        """
    import plotly
    assert plot_exploitabilities or plot_traces
    if plot_traces and plot_exploitabilities:
        fig = plotly.tools.make_subplots(cols=2, print_grid=False,
            column_width=[0.6, 0.4])
    else:
        fig = plotly.graph_objs.Figure()
    if plot_traces:
        fig['layout']['yaxis']['scaleanchor'] = 'x'
    if palette is None:
        palette = plotly.colors.DEFAULT_PLOTLY_COLORS
    for ti, t in enumerate(traces):
        if plot_traces:
            fig.add_traces(t.plot_trace(base=base, color=palette[ti],
                with_regret=with_regret))
        if plot_exploitabilities:
            objs = t.plot_exploitabilities(color=palette[ti], showlegend=
                not plot_traces)
            if plot_traces:
                for o in objs:
                    o.xaxis = 'x2'
                    o.yaxis = 'y2'
            fig.add_traces(objs)
    fig['layout'].update(hovermode='x', title=dict(text=title))
    return fig
