Hello everyone,
I am trying to create three-dimensional isosurfaces using plotly in Python and color it using another variable. However, the isosurfaces are colored by default with the isosurface level instead. I know that one can do something like this using the surfacecolor option for surfaces. Does something similar exist for isosurfaces?
Hereβs my code for reference:
isosurfacePlot = go.Isosurface(
x=Xf,
y=Yf,
z=Zf,
value=qCrit[:,:,:,i].flatten(),
isomin=isominVal,
isomax=isomaxVal
)
layout3d = dict(title_text='Q-criterion, t = '+str(np.round(timeList[i],2)), title_x=0.5,
scene_camera_up=dict(x=0, y=1, z=0)
)
fig = go.Figure(data=[isosurfacePlot],layout=layout3d)
fig.update_layout(scene_aspectmode='data')
fig.write_image(saveDir+"fig"+str(i+1)+".png")