Hi
I have corner points of a volume and I want to draw this volume with all surfaces filled. I wrote the below code but Unfortunately as you see it’s all side surfaces do not fill. What should I do? (please guide me on python plotly and I can’t use dash)
The reason of add traces is to active other surfaceaxis and that would be great if only with one trace I could add it.
import plotly.graph_objects as go
import numpy as np
from numpy import pi, sin, cos
x= [0,1,0,0,0,1,0,0]
y= [0,0,1,0,0,0,1,0]
z= [0,0,0,0,1,1,1,1]
linemode={'width': 5, 'color': 'black'}
fig = go.Figure(go.Scatter3d(x=x, y=y, z=z, mode="lines+markers",surfaceaxis=1,surfacecolor='purple', marker_size=3,line=linemode))
fig.add_scatter3d(x=x, y=y, z=z, mode="lines+markers",surfaceaxis=2,surfacecolor='purple', marker_size=3,line=linemode)
fig.add_scatter3d(x=x, y=y, z=z, mode="lines+markers",surfaceaxis=0,surfacecolor='purple', marker_size=3,line=linemode)
fig.show()