✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Orthographic projection instead of perspective for 3D plots?

Hello,

Is there a way to use orthographic instead of perspective projection for 3D plots?
This is in fact the standard for Matlab for example, and it is very convenient when viewing data to have a 2D projection when the camera is looking along one of the axis of the plot, for example.
Even if this requires some modification of plotly.js, I’d be interested to be guided in the right direction, even though a release is not done right away.

Best regards,
Emmanuel

2 Likes

There’s no way to change the projections settings in our 3D subplots at the moment.

Feel free to open a feature request -> https://github.com/plotly/plotly.js/issues/new

When doing so, make sure to add links to and screenshots of the relevant matlab examples you mentioned above.

Hi, is there any update in this regard? Thank you

@carlomontec
Orthographic projection has been introduced in 2019.
I paste here the layout definition from a json file to see how the projection type is set:

"layout": {"scene":{
                "camera": {
                    "projection": {
                        "type": "orthographic"
                    }
                  }}}
1 Like

Thank you very much for the complete reply.