-
Notifications
You must be signed in to change notification settings - Fork 333
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
Blank plotly 3D plots #1128
Comments
This looks like a CSS issue. |
I haven't tested it, but I'm pretty confident that this line introduces the problem: Lines 46 to 48 in 09bacb3
|
We should better scope Lines 46 to 48 in 09bacb3
This line is mostly there to ensure a white background for SVG plots rendered with matplotlib or similar but unfortunately breaks plotly 3D plots. I'm going to label this as a good first issue if someone wants to dig into it and find a better solution. |
Fixes Plotly 3D inline charts display
Do matplotlib SVG plots come back as raw SVG? If so, I'd put a className on that transform (assuming no way to detect it's matplotlib) and then style it. |
Description:
I followed this tutorial to plot the 3D scatter plot. But seems like it cannot render 3D plots properly.
As shown on the figure above, the hover text is properly displayed but no data points are shown.
However, when I tried to do 2D line chart, it render properly.
Steps to Reproduce:
Versions:
Mac OS 10.12.6
Atom : 1.22.1
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
plotly: 2.2.2
Logs:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-swz/ljTjUNUGwUQTCdL2vZS/ni77MS56012RAz3iLBk='), or a nonce ('nonce-...') is required to enable inline execution.
This error is shown when I run
plotly.offline.init_notebook_mode()
. But same error appeared when I plotted the 2D line plots therefore I think it might not related to the issue.The text was updated successfully, but these errors were encountered: