-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plotting a 3D graph with config option staticPlot
turned on results in blank graph
#457
Comments
Post #1939, I'm thinking we should drop the var img = document.createElement('img')
Plotly
.toImage({data: data, layout: layout})
.then(imgData => img.src = imgData) to generate static images. No need to support |
So that staticPlot option is handy for a few reason. We are currently displaying many graphs on the one page (in react), we are unable to call toImage, as by the time we get around to it the context has already been lost, or the plot has not been rendered. We ideally want to start with a static plot, however toImage requires creating a non static-plot first, which uses more webgl contexts . I also believe staticPlot correctly resizes aswell. |
Right, Seems like what this requires is when @McPonolith if you're creating many graphs simultaneously this still may cause problems of too many contexts, and us dropping some. I guess in principle we could stash some global state saying "we're rendering a webgl plot as static" and have any others wait until previous ones are done and have released their contexts before they even try to render. Still not 100% clear that this would work, as in my experience browsers don't always handle these resources on the schedule we want them to! |
Was just bit by this issue. Hoping to see it worked on. |
I confirm |
http://codepen.io/etpinard/pen/QNBWoK
should display an image and the graph div.
The text was updated successfully, but these errors were encountered: