So, I want to plot a 'mesh3d` type plot using plotlyjs, but I want the surface to have different colour on either sides, like red on top and green on the bottom. Is it possible to do?
Thanks for using Plotly.js!
Here is a demo using vertexcolor
.
No I meant a simple surface having two different color on either sides just like what you get with gnuplot’s hidden3d
Noting that all 3d faces in stackgl are considered to be double-sided, one needs to add back and front faces separately and with some offset.
You may also consider using isosurface
trace to define your surface similar to this demo.