trace1 = Scatter3d(x=[1, 2], y=[1, 2], z=[1, 2])
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')))
Show legend and label axes in plotly 3D scatter plots