Title: [Bug]: The Axes3D does not work as expected. · Issue #24639 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: The Axes3D does not work as expected. · Issue #24639 · matplotlib/matplotlib
X Title: [Bug]: The Axes3D does not work as expected. · Issue #24639 · matplotlib/matplotlib
Description: Bug summary The Axes3D does not work as expected. Code for reproduction import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D plt.style.use('_mpl-gallery') # Make data np.random.seed(19680801) n = 100...
Open Graph Description: Bug summary The Axes3D does not work as expected. Code for reproduction import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D plt.style.use('_mpl-gallery') # Ma...
X Description: Bug summary The Axes3D does not work as expected. Code for reproduction import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D plt.style.use('_mpl-gallery...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24639
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: The Axes3D does not work as expected.","articleBody":"### Bug summary\n\nThe Axes3D does not work as expected.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\n\r\n\r\nplt.style.use('_mpl-gallery')\r\n\r\n# Make data\r\nnp.random.seed(19680801)\r\nn = 100\r\nrng = np.random.default_rng()\r\nxs = rng.uniform(23, 32, n)\r\nys = rng.uniform(0, 100, n)\r\nzs = rng.uniform(-50, -25, n)\r\n\r\n# Plot\r\n# fig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})\r\nfig = plt.figure()\r\nax = Axes3D(fig)\r\nax.scatter(xs, ys, zs)\r\n\r\nax.set(xticklabels=[],\r\n yticklabels=[],\r\n zticklabels=[])\r\n\r\nplt.show()\n```\n\n\n### Actual outcome\n\nThe outcome figure is blank.\n\n### Expected outcome\n\nShould show figure with correct content.\n\n### Additional information\n\nThe code works well if changed to\r\n`fig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})`\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.6.2\n\n### Matplotlib Backend\n\nQt5Agg\n\n### Python version\n\n3.9.15\n\n### Jupyter version\n\nNA\n\n### Installation\n\nconda","author":{"url":"https://github.com/jerryliu20d","@type":"Person","name":"jerryliu20d"},"datePublished":"2022-12-06T04:38:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/24639/matplotlib/issues/24639"}
| 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:5a6e49cb-8928-1497-892e-95529abd14e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D23E:2965CC:CD4DE2:116A269:6A51692A |
| html-safe-nonce | 6687e66ecac04be37a68675f11c92a5fcdbc9ba5b37e23af7e8755682670e4a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjNFOjI5NjVDQzpDRDRERTI6MTE2QTI2OTo2QTUxNjkyQSIsInZpc2l0b3JfaWQiOiI3MjgwMDIwNjU3MTM5NzA2MTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7a83270e10f09b06f7fb33ba695a75a9aad9d9a5ed99068d365c12cb93dc55a |
| hovercard-subject-tag | issue:1478174928 |
| 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/24639/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c6072f5f0916eabdb8916255da16f623e6704fe328094dc7e5f489777a9669b/matplotlib/matplotlib/issues/24639 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c6072f5f0916eabdb8916255da16f623e6704fe328094dc7e5f489777a9669b/matplotlib/matplotlib/issues/24639 |
| og:image:alt | Bug summary The Axes3D does not work as expected. Code for reproduction import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D plt.style.use('_mpl-gallery') # Ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jerryliu20d |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width