I am trying to plot a 3d density in python using Plotly.
Posting the link below as this was my initial inspiration. Just imagine that I want something similar to the answer below but the density not frequency histograms and without having the gaps between them.
My data which can be produced randomly have 10000 rows and 10 columns. I assume that my columns represent the same data in different points in time - so column names 0-9 mean period 0, period 1,...etc.
The closest I have got so far is shown in the pic below.
But I think this needs to be rotated. However, when I change the z,x,y arguments shown in the code below I get just empty axes.
fig = go.Figure(data=[go.Surface(z=data, x=data.columns, y=data.index)])
fig.update_layout(title='Some title',
autosize=False,
width=500,
height=500,
margin=dict(l=65, r=50, b=65, t=90))
fig = z_data[z_data.columns[0]].plot.hist()
fig.show()enter code here