I did what you said and I got the below image. But what should I do if I want to fill also sides? Because I want to get a volume and for this purpose I need to have surfaces also in sides. Is there any way or I the only way is according our discussion in ( Draw a 3d object without any inside line - Plotly / Plotly Python - Plotly Community Forum)?
import plotly.graph_objects as go
import numpy as np
from numpy import pi, sin, cos
x= [0,1,0]
y= [0,0,1]
z= [0,0,0]
linemode={'width': 5, 'color': 'black'}
fig = go.Figure(go.Scatter3d(x=x, y=y, z=z, mode="lines+markers",surfaceaxis=2,surfacecolor='purple', marker_size=3,line=linemode))
fig.add_scatter3d(x=[0,1, 0], y=[0, 0, 1], z=[1,1,1],
surfaceaxis=2, surfacecolor='purple',
marker_size=3, line=linemode)
fig.show()