Python Beginner: Ridgeplot

Hi, Iā€™m new to python and plotly and I have some array data that I would like to plot using a ridgeplot.

x0 = [16, 12, 43, 14, 20, 14, 18, 10, 45, 22, 45, 15, 11, 18, 14, 46, 12, 9, 16, 14, 26, 21, 18, 25, 24, 13, 51, 12, 14, 17, 25, 14, 27, 21, 21, 25, 22, 15, 32, 26, 14, 49, 25, 19, 11, 10, 50, 12, 17, 13, 18, 51, 14, 12, 9, 24, 26, 22, 28, 25, 17, 12, 51, 18, 15, 26, 21, 27, 22, 29, 12, 11, 17, 45, 21, 26, 30, 19, 25, 22, 21, 49, 12, 15, 15, 32, 20, 13, 24, 24, 48, 24, 16, 13, 21, 12, 14, 10, 27, 50, 22, 17, 12, 50, 18, 26, 23, 30, 18, 22, 27, 25, 19, 21, 20, 30, 21, 13, 32, 22, 11, 19, 16, 49, 11, 11, 10, 49, 23, 7, 19, 19, 28, 20, 18, 11, 13, 19, 49, 20, 15, 15, 16, 50, 18, 18, 51, 23, 10, 22, 15, 25, 30, 16, 22, 31, 25, 26, 19, 23, 50, 17, 11, 17, 13, 29, 18, 16, 26, 30, 17, 12, 20, 15, 49, 50, 16, 14, 9, 21, 49, 19, 7, 16, 15, 10, 18, 14, 21, 45, 27, 11, 30, 26, 30, 23, 46, 15, 17, 14, 19, 20, 13, 9, 50, 11, 24, 27, 23, 21, 23, 18, 20, 25, 26, 47, 17, 23, 14, 15, 21, 49, 19, 15, 12, 21, 22, 16, 30, 23, 12, 50, 19, 12, 24, 10, 15, 46, 24, 11, 18, 27, 32, 27, 19]
x1 = [6, 9, 26, 8, 8, 7, 2, 27, 12, 8, 26, 7, 8, 9, 12, 25, 11, 13, 4, 11, 22, 10, 12, 20, 12, 7, 28, 13, 8, 9, 11, 10, 17, 11, 10, 10, 26, 7, 2, 9, 8, 28, 9, 12, 9, 9, 6, 7, 11, 28, 9, 12, 12, 15, 12, 7, 6, 27, 16, 11, 4, 8, 28, 9, 10, 6, 12, 27, 4, 11, 14, 13, 14, 12, 10, 3, 10, 11, 14, 26, 11, 28, 4, 7, 11, 8, 9, 9, 27, 5, 11, 17, 15, 10, 13, 10, 3, 9, 9, 25, 8, 27, 12, 3, 3, 9, 6, 19, 8, 18, 9, 8, 5, 7, 26, 6, 7, 27, 11, 10, 3, 10, 8, 2, 25, 14, 12, 14, 14, 15, 5, 26, 10, 7, 8, 10, 16, 19, 6, 11, 11, 14, 17, 16, 7, 28, 7, 9, 13, 8, 7, 8, 15, 17, 16, 14, 10, 12, 16, 13, 28, 11, 7, 12, 13, 13, 8, 12, 17, 14, 11, 10, 14, 12, 10, 27, 9, 5, 4, 7, 15, 12, 12, 17, 8, 2, 9, 11, 7, 27, 13, 13, 11, 14, 13, 14, 14, 10, 17, 12, 6, 15, 8, 16, 8, 10, 10, 5, 6, 26, 6, 10, 9, 9, 26, 25, 8, 6, 7, 10, 11, 7, 8, 4, 26, 27, 6, 11, 2, 10, 13, 18, 12, 13, 14, 8, 8, 7, 12, 24, 13, 8, 11, 8, 14]
x2 = [15, 6, 40, 14, 13, 11, 33, 14, 7, 16, 36, 10, 10, 12, 8, 35, 21, 9, 20, 7, 8, 39, 15, 12, 6, 17, 36, 6, 11, 11, 12, 9, 10, 39, 17, 22, 17, 24, 17, 11, 6, 38, 14, 18, 8, 11, 15, 14, 4, 39, 18, 15, 14, 19, 21, 12, 16, 21, 12, 18, 9, 11, 37, 16, 12, 26, 17, 12, 14, 21, 18, 14, 16, 14, 22, 21, 24, 15, 20, 15, 15, 40, 11, 12, 10, 40, 7, 12, 14, 15, 11, 35, 7, 10, 11, 12, 17, 13, 12, 40, 10, 21, 18, 18, 21, 12, 37, 15, 13, 9, 16, 15, 21, 13, 16, 9, 8, 12, 5, 37, 14, 15, 3, 15, 36, 11, 20, 24, 20, 15, 14, 22, 15, 16, 25, 18, 20, 20, 15, 19, 16, 17, 20, 19, 14, 16, 20, 14, 14, 25, 10, 11, 38, 13, 10, 21, 15, 13, 25, 19, 40, 13, 11, 17, 6, 6, 15, 38, 14, 9, 8, 16, 40, 5, 17, 37, 15, 10, 14, 6, 10, 23, 37, 9, 12, 15, 9, 8, 12, 38, 16, 8, 8, 35, 15, 38, 10, 11, 17, 12, 20, 17, 19, 14, 12, 20, 15, 18, 15, 16, 11, 14, 8, 9, 37, 38, 7, 19, 7, 14, 18, 12, 27, 17, 11, 6, 11, 13, 12, 37, 8, 13, 38, 3, 10, 20, 18, 20, 20, 17, 21, 13, 14, 22, 15]
x3 = [15, 7, 31, 10, 11, 10, 11, 13, 0, 33, 34, 12, 15, 7, 5, 34, 7, 8, 21, 7, 2, 9, 8, 35, 11, 7, 29, 6, 18, 14, 22, 12, 12, 16, 19, 34, 14, 9, 11, 12, 16, 33, 7, 17, 7, 18, 14, 16, 15, 15, 14, 18, 21, 12, 17, 14, 19, 16, 13, 14, 6, 19, 35, 13, 14, 5, 11, 13, 35, 11, 35, 9, 14, 11, 16, 15, 25, 18, 12, 19, 8, 31, 17, 13, 8, 11, 14, 12, 19, 25, 8, 17, 19, 13, 12, 8, 10, 13, 3, 32, 11, 15, 19, 20, 16, 22, 20, 16, 15, 19, 7, 7, 9, 7, 34, 13, 12, 35, 6, 12, 35, 3, 12, 10, 15, 13, 18, 17, 18, 19, 11, 9, 35, 7, 12, 18, 15, 13, 12, 15, 20, 6, 34, 5, 11, 6, 10, 17, 31, 0, 8, 12, 14, 4, 34, 16, 14, 23, 13, 11, 33, 5, 7, 13, 11, 10, 32, 2, 15, 11, 16, 7, 36, 6, 15, 36, 9, 9, 13, 15, 9, 12, 15, 7, 31, 7, 10, 15, 3, 32, 14, 12, 19, 20, 15, 10, 34, 3, 8, 18, 18, 14, 17, 15, 12, 15, 18, 19, 13, 16, 8, 8, 8, 15, 35, 34, 9, 13, 18, 10, 17, 18, 14, 12, 16, 17, 13, 15, 17, 8, 22, 15, 16, 13, 16, 15, 9, 9, 36, 12, 19, 17, 9, 18, 19]
x4 = [6, 3, 10, 1, 3, 4, 3, 10, 1, 0, 8, 4, 2, 6, 2, 9, 6, 6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15, 15, 17, 21, 7, 14, 23, 18, 8, 36, 14, 10, 6, 13, 12, 20, 18, 18, 36, 9, 7, 4, 10, 15, 21, 22, 13, 21, 17, 19, 15, 15, 16, 13, 33, 11, 11, 8, 36, 6, 16, 14, 10, 12, 12, 9, 6, 33, 36, 10, 11, 15, 8, 22, 17, 11, 12, 18, 9, 6, 37, 7, 14, 36, 9, 8, 13, 11, 24, 18, 12, 9, 16, 12, 10, 9, 9, 34, 16, 15, 9, 22, 14, 13, 13, 18, 17, 20, 14, 10, 36, 17, 11, 34, 12, 12, 9, 6, 12, 15, 18, 19, 20, 36, 8, 12, 9, 12, 11, 20, 26, 12, 12, 11, 15, 15, 20, 16, 37, 2, 8, 16, 6, 16, 15, 18, 13, 12, 13, 7, 22, 36, 8]

I tried to follow this:

import plotly.graph_objects as go
from plotly.colors import n_colors
import numpy as np
np.random.seed(1)

# 12 sets of normal distributed random data, with increasing mean and standard deviation
data = (np.linspace(1, 2, 12)[:, np.newaxis] * np.random.randn(12, 200) +
            (np.arange(12) + 2 * np.random.random(12))[:, np.newaxis])

colors = n_colors('rgb(5, 200, 200)', 'rgb(200, 10, 10)', 12, colortype='rgb')

fig = go.Figure()
for data_line, color in zip(data, colors):
    fig.add_trace(go.Violin(x=data_line, line_color=color))

fig.update_traces(orientation='h', side='positive', width=3, points=False)
fig.update_layout(xaxis_showgrid=False, xaxis_zeroline=False)
fig.show()

But Iā€™m not sure how to manipulate my data to fit the code. Any help would be much appreciated!