import plotly.graph_objects as go
# fmt: off
fig = go.Figure(
go.Scatter3d(
x=[0, 1, 3, 2, 0],
y=[0, 2, 2, 0, 0],
z=[0, 1, 1, 0, 0],
mode='lines',
)
)
fig.update_traces(
surfacecolor="blue",
surfaceaxis=2,
)
fig.show()
# fmt: on
Shape in 3D Scattter Plot
3D Scatter Plots & Shapes