Scatter plot overlaid on histogram

Is it possible to plot a scatter plot and histogram on the same plot, where the scatter is overlaid on top of the histogram? I have successfully done this with a bar chart, but I would like to use the histogram plot as its more statistically accurate for the data I am portraying.

bins = np.linspace(filtered_df.depth_meters.min(), filtered_df.depth_meters.max(), nbins)
traces = [
         go.Histogram(
            y=data['depth_meters'],
            name="Count of {}".format(concept),
            yaxis='y',
            ybins=dict(
                start=bins[0],
                end=bins[-1],
                size=(bins[-1]-bins[0])/(len(bins)-1)
            ),
            autobiny=False
        ),

        go.Scatter(
            y=df2['depth_meters'],
            x=df2['param'],
            xaxis='x2',
            name=parameter
        ),
]