✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Getting camera view data for 3d plots

Hi folks,

I know there is a way to set the camera angle of a 3D scatter plot. I was just wondering if it possible to get the information of the camera angle (after plotting) when the graph has been rotated manually (eg. by the mouse)
?

Thanks :wink:

Edit: Sorry, I could have checked just a bit longer since I found kind of an answer:

fig.layout.scene.camera

Hi @Alexboiboi,

Yeah, if you display the figure using a FigureWidget (https://plot.ly/python/figurewidget/) in the Jupyter Notebook then you can access properties to lookup the current values of properties that are chosen by ploty.js as defaults, and properties that are modified interactively.

-Jon

Hi! FigureWidget is not supported in frames. What could be a walkaround?