I use the plotly python api (Scatter3d) method to create 3D scatter plots. I love how plotly will export the generated graph into html and saves a temp file. I use the api in the offline mode.
The problem I have is when loading the saved html file (which is around 2-3 Mb with 100-200 points), after chrome renders the graph axis, the whole image freezes for a few seconds.
This is only noticed in certain computers.
I dont mind waiting for the loading but I would like the graph to be completely loaded once the axis appears. My client does not like the βfreezingβ effect when he tries to move the 3d plot.
just using the python api, how can i make the exported html as lean and optimized as much as possible?
Changing the browser didnβt help. Are there any other workarounds when viewing the scatter plots?
Is there anything we can do to optimize the graphs and reduce the freezing observed at the start?
Are there 3D alternatives to scattergl and pointcloud?
@thusithc WebGL performance can definitely be variable depending on the computer. Have you tried uploading this plot to plotly cloud? Plotly cloud handles the loading of the data and plotly.js in a more optimized way, so you may have better results than trying to save everything to an offline HTML file. With a paid plan you can share a private link to your graph.