def plot_bubble_area_hist(df, bSave=False, dirname=None):
    """Plots a histogram of the area of the bubbles
    """
    import plotly
    import plotly.graph_objs as go
    import plotly.io as pio
    data = []
    for i in range(len(df['Frame'].unique())):
        data.append(go.Histogram(x=df[df['Frame'] == df['Frame'].unique()[i
            ]]['Area'], name=df['Frame'].unique()[i]))
    fig = go.Figure({'data': data, 'layout': go.Layout(width=800, height=
        500, xaxis=dict(title='Area (mm2)', linecolor='black', linewidth=2,
        mirror=True), showlegend=True)})
    plotly.offline.plot(fig, auto_open=True)
    if bSave:
        pio.write_image(fig, dirname + '/' + 'BubbleHist.pdf')
