data = Data([trace1])
layout = Layout(scene=Scene(xaxis=XAxis(title='x axis title'), yaxis=YAxis(
    title='y axis title'), zaxis=ZAxis(title='z axis title')))
fig = Figure(data=data, layout=layout)
Show legend and label axes in plotly 3D scatter plots