Title: Overlapping 3D objects · Issue #12620 · matplotlib/matplotlib · GitHub
Open Graph Title: Overlapping 3D objects · Issue #12620 · matplotlib/matplotlib
X Title: Overlapping 3D objects · Issue #12620 · matplotlib/matplotlib
Description: Bug report When plotting a 3D plane, a segment and a few points, there are visualization issues: The 'filling' of the plane cover the line and the points import mpl_toolkits.mplot3d as a3 import matplotlib.pylab as plt import numpy as np...
Open Graph Description: Bug report When plotting a 3D plane, a segment and a few points, there are visualization issues: The 'filling' of the plane cover the line and the points import mpl_toolkits.mplot3d as a3 import ma...
X Description: Bug report When plotting a 3D plane, a segment and a few points, there are visualization issues: The 'filling' of the plane cover the line and the points import mpl_toolkits.mplot3d as a3 i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12620
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overlapping 3D objects","articleBody":"### Bug report\r\nWhen plotting a 3D plane, a segment and a few points, there are visualization issues:\r\nThe 'filling' of the plane cover the line and the points\r\n\r\n```\r\nimport mpl_toolkits.mplot3d as a3\r\nimport matplotlib.pylab as plt\r\nimport numpy as np \r\n\r\nfig = plt.figure()\r\nax = a3.Axes3D(fig)\r\n\r\n# create an orizontal plane\r\ncorners = [[0,0,0],[0,5,0],[5,5,0],[5,0,0]]\r\ntri = a3.art3d.Poly3DCollection([corners], alpha=1)\r\ntri.set_color('w')\r\ntri.set_edgecolor('k')\r\nax.add_collection3d(tri)\r\n\r\n# plot a vector\r\nax.plot([2,2],[2,2],[0,4], c = 'r')\r\n\r\n# plot some points\r\nax.scatter([1,3],[1,3],[1,3], c = 'r')\r\n\r\nax.set_xlim([0, 5.0])\r\nax.set_ylim([0, 5.0])\r\nax.set_zlim([0, 2.5]);\r\n\r\nplt.show()\r\n```\r\noutput figure\r\n\r\n\r\nexpected output:\r\nthe red segment should at [2, 2, 0] in the middle of the plane. It looks as it is 'under' it\r\n\r\n[stackoverflow thread](https://stackoverflow.com/questions/52923540/matplotlib-3d-workaround-for-plot-order)\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system:\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5, GTK and WX\r\n * Python version: 3.6.6\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\nInstalled with pip\r\n\r\n\r\n","author":{"url":"https://github.com/Chutlhu","@type":"Person","name":"Chutlhu"},"datePublished":"2018-10-24T18:17:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/12620/matplotlib/issues/12620"}
| 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:a731683a-52b4-5b63-72c0-9df99145302c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D55C:33520B:13088E7:1A1305F:6A55CEEB |
| html-safe-nonce | ec800f379dcbaae70b6658cd10911b11d37b2df79a2a5caac97e0b8c2886b0a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVDOjMzNTIwQjoxMzA4OEU3OjFBMTMwNUY6NkE1NUNFRUIiLCJ2aXNpdG9yX2lkIjoiMjM4Njg2NjQ0ODA1MDI3ODEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f8612989cfe6676c6b191023c7d3018730488979c763df71c240a9b22c68c799 |
| hovercard-subject-tag | issue:373612863 |
| 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/12620/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36bf3403432e50b14098ccb219520514cf2b049e349e9eabaf5bf38edba49bf6/matplotlib/matplotlib/issues/12620 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36bf3403432e50b14098ccb219520514cf2b049e349e9eabaf5bf38edba49bf6/matplotlib/matplotlib/issues/12620 |
| og:image:alt | Bug report When plotting a 3D plane, a segment and a few points, there are visualization issues: The 'filling' of the plane cover the line and the points import mpl_toolkits.mplot3d as a3 import ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Chutlhu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 8f8e1726192df8dce16872ceb503336c12e9ae78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width