Staggered/Stacked Histogram Plots

@Emmanuelle Following the Ridgeline plot you refer to I tried to reproduce it, but instead of using a go.Violin I need to use px.scatter. So, from this minimal working version of the code:

fig = go.Figure()
for i in range(5):
    fig.add_trace(go.Violin(x=[0,2,6], line_color=color))

fig.show()

I created this:

fig = go.Figure()
for i in range(5):
    fig_i = px.scatter(x=[0,2,6], y=[5,10,5])
    fig.add_trace(fig_i.data[0])
    
fig.show()

But when I use scatter I don’t get multiple traces, but just one. How can I make a Ridgeline plot with scattered data? Does plotly only do Ridgeline plots with go.Violin? Is there some workaround that would help in my case? Thanks