Title: A simple 3D scatter plot with %matplotlib notebook is not working · Issue #18132 · matplotlib/matplotlib · GitHub
Open Graph Title: A simple 3D scatter plot with %matplotlib notebook is not working · Issue #18132 · matplotlib/matplotlib
X Title: A simple 3D scatter plot with %matplotlib notebook is not working · Issue #18132 · matplotlib/matplotlib
Description: Bug report Bug summary A simple 3D scatter plot is not working on jupyter notebook when %matplotlib notebook is enabled. However, it is working for %matplotlib inline An extremely large, blank window appears that spans beyond the page. C...
Open Graph Description: Bug report Bug summary A simple 3D scatter plot is not working on jupyter notebook when %matplotlib notebook is enabled. However, it is working for %matplotlib inline An extremely large, blank wind...
X Description: Bug report Bug summary A simple 3D scatter plot is not working on jupyter notebook when %matplotlib notebook is enabled. However, it is working for %matplotlib inline An extremely large, blank wind...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A simple 3D scatter plot with %matplotlib notebook is not working","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nA simple 3D scatter plot is not working on jupyter notebook when `%matplotlib notebook` is enabled. However, it is working for `%matplotlib inline`\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\nAn extremely large, blank window appears that spans beyond the page.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\n%matplotlib notebook\r\n\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\n\r\nA = np.random.random((100,3))\r\nfig = plt.figure()\r\nax = Axes3D(fig)\r\nax.scatter(A[:,0], A[:,1], A[:,2])\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n**Expected outcome**\r\n\r\nExpecting a 3D scatter plot of `A`.\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: posix Darwin 19.6.0\r\n * Matplotlib version: 3.3.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): nbAgg\r\n * Python version: 3.7.5\r\n * Jupyter version (if applicable): \r\n - jupyter core : 4.6.3\r\n - jupyter-notebook : 6.0.3\r\n - qtconsole : 4.7.5\r\n - ipython : 7.16.1\r\n - ipykernel : 5.3.4\r\n - jupyter client : 6.1.6\r\n - jupyter lab : not installed\r\n - nbconvert : 5.6.1\r\n - ipywidgets : 7.5.1\r\n - nbformat : 5.0.7\r\n - traitlets : 4.3.3\r\n * Other libraries: numpy 1.19.1, scipy 1.5.2\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/chudur-budur","@type":"Person","name":"chudur-budur"},"datePublished":"2020-07-31T01:49:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/18132/matplotlib/issues/18132"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:18f89c5f-90d8-51e7-ea3e-8ad32a618da9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8854:23E740:EFFA7F:15DBC76:6A56165C |
| html-safe-nonce | ce5effd501f3956ac95f8b666e27d76d47d2ab8a0046c46e0fb49b44ade4ac10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU0OjIzRTc0MDpFRkZBN0Y6MTVEQkM3Njo2QTU2MTY1QyIsInZpc2l0b3JfaWQiOiIyNTAzNTI2ODk5NTAwMDYyMzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db0444df33f974658818bbabebba1b316660e7108b78d7550c4aaa035ad2a1a3 |
| hovercard-subject-tag | issue:669330710 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/18132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ca5d3668eb48c556591f85b1abbd70144f6506f1e56b2e492f4058bacb515c2/matplotlib/matplotlib/issues/18132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ca5d3668eb48c556591f85b1abbd70144f6506f1e56b2e492f4058bacb515c2/matplotlib/matplotlib/issues/18132 |
| og:image:alt | Bug report Bug summary A simple 3D scatter plot is not working on jupyter notebook when %matplotlib notebook is enabled. However, it is working for %matplotlib inline An extremely large, blank wind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chudur-budur |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b76b9cc70d30da50674184c9c66c56423fd0b93c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width