Description
Expected behavior: scene layout properties for 3D plots can be modified with Plotly.relayout
(and similar API methods that work through Plots.supplyLayoutModuleDefaults
).
Observed behavior: The call appears valid, but no change occurs. It's possible I have a simple error, but it appears not to do anything. This example appears to work through getters and setters, but that seemed to be finicky. Specifically, object identity made a big difference. Any similar examples without the same scene/camera object identities led to a blank white screen.
Version: plotly-1.17.2.min.js
Possible fix: Without understanding the cause, it seems that if GL just doesn't work this way that plotly.js should be doing the footwork to make it appear as if it does, i.e. sending the input through getters and setters for you.
Example: http://codepen.io/rsreusser/pen/ALEaNR?editors=0010
Further small nitpick: I could produce a more simple example, but just to float the issue out there, this pen attempts to update the data and layout as simultaneously as it can, but the scene/camera getters/setters appear to all get queued behind any other updates, making for kind of an unpleasant effect. It would be nice if the scene updates were somehow synchronous-ish.
cc: @etpinard @monfera, who both know way more than I do about the GL interface.