Title: [Bug]: 3D surface is not plotted for the contour3d_3 example in the gallery · Issue #23895 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: 3D surface is not plotted for the contour3d_3 example in the gallery · Issue #23895 · matplotlib/matplotlib
X Title: [Bug]: 3D surface is not plotted for the contour3d_3 example in the gallery · Issue #23895 · matplotlib/matplotlib
Description: Bug summary The 3D surface is not plotted for the contour3d_3 example in the gallery. Code for reproduction # Straight from the official gallery of matplotlib # https://matplotlib.org/stable/gallery/mplot3d/contour3d_3.html from mpl_tool...
Open Graph Description: Bug summary The 3D surface is not plotted for the contour3d_3 example in the gallery. Code for reproduction # Straight from the official gallery of matplotlib # https://matplotlib.org/stable/galler...
X Description: Bug summary The 3D surface is not plotted for the contour3d_3 example in the gallery. Code for reproduction # Straight from the official gallery of matplotlib # https://matplotlib.org/stable/galler...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23895
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: 3D surface is not plotted for the contour3d_3 example in the gallery","articleBody":"### Bug summary\n\nThe 3D surface is not plotted for the [contour3d_3 example in the gallery](https://matplotlib.org/stable/gallery/mplot3d/contour3d_3.html).\r\n\n\n### Code for reproduction\n\n```python\n# Straight from the official gallery of matplotlib\r\n# https://matplotlib.org/stable/gallery/mplot3d/contour3d_3.html\r\n\r\nfrom mpl_toolkits.mplot3d import axes3d\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib import cm\r\n\r\nax = plt.figure().add_subplot(projection='3d')\r\nX, Y, Z = axes3d.get_test_data(0.05)\r\n\r\n# Plot the 3D surface\r\nax.plot_surface(X, Y, Z, rstride=8, cstride=8, alpha=0.3)\r\n\r\n# Plot projections of the contours for each dimension. By choosing offsets\r\n# that match the appropriate axes limits, the projected contours will sit on\r\n# the 'walls' of the graph.\r\nax.contour(X, Y, Z, zdir='z', offset=-100, cmap=cm.coolwarm)\r\nax.contour(X, Y, Z, zdir='x', offset=-40, cmap=cm.coolwarm)\r\nax.contour(X, Y, Z, zdir='y', offset=40, cmap=cm.coolwarm)\r\n\r\nax.set(xlim=(-40, 40), ylim=(-40, 40), zlim=(-100, 100),\r\n xlabel='X', ylabel='Y', zlabel='Z')\r\n\r\nplt.show()\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\nWith matplotlib 1.4.3 it used to look like this:\r\n\r\n\r\n\n\n### Additional information\n\nLast known working version: matplotlib 1.4.3\r\n\r\nIt is also [broken in matplotlib 2.2.5](https://matplotlib.org/2.2.5/gallery/mplot3d/contour3d_3.html#sphx-glr-gallery-mplot3d-contour3d-3-py)\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.5.3\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\n_No response_","author":{"url":"https://github.com/baharev","@type":"Person","name":"baharev"},"datePublished":"2022-09-15T12:09:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/23895/matplotlib/issues/23895"}
| 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:ad1fd674-289b-0d9e-3fb1-4d6c37656051 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0CE:48B83:5156ACA:713ACC0:6A50F917 |
| html-safe-nonce | 8180ec2c19c5994e321aa5159e4a107a8e5fbf8e25b0bc99928528fa1dd16687 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMENFOjQ4QjgzOjUxNTZBQ0E6NzEzQUNDMDo2QTUwRjkxNyIsInZpc2l0b3JfaWQiOiI0MzgxMDc0MTgwODE4NDAxNTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cda430a2a072965ece18f127dadfee9f85553316331c2b79edeed0d35d04b780 |
| hovercard-subject-tag | issue:1374428048 |
| 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/23895/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95a40f9a0fbe35ed68ae5c117f2c495ef221dd7dfe19bc8fc9310df20bae81b6/matplotlib/matplotlib/issues/23895 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95a40f9a0fbe35ed68ae5c117f2c495ef221dd7dfe19bc8fc9310df20bae81b6/matplotlib/matplotlib/issues/23895 |
| og:image:alt | Bug summary The 3D surface is not plotted for the contour3d_3 example in the gallery. Code for reproduction # Straight from the official gallery of matplotlib # https://matplotlib.org/stable/galler... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | baharev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width