Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Surface plot for oriented surfaces

Dear community,

Is there a way to create a surface plot with oriented surfaces ?
That is is there a way to create a surface plot where one side of the surface is red and the other side is blue like this picture here:

I spent a considerable time in combing the docs for the API-s as well and failed to find the appropriate options…

The question is not how to obtain a a surface plot in 3D which is , but how to tell plotly explicitly to color two sides of the surface with a different color.

There is no way to explicitly set the color of two sides of a surface trace at the moment.

You could try to play around with the lighting attributes to make the side of the surface more distinguishable.