René's URL Explorer Experiment


Title: Incorrect overlap of markers in scatter3D · Issue #5830 · matplotlib/matplotlib · GitHub

Open Graph Title: Incorrect overlap of markers in scatter3D · Issue #5830 · matplotlib/matplotlib

X Title: Incorrect overlap of markers in scatter3D · Issue #5830 · matplotlib/matplotlib

Description: I understand that 3d plotting is as yet a bit hacky, but from what little I understand of the code for Path3DCollection (or is it Patch3DCollection as the docstring for scatter says?), it feels like this should be fixable (patches aren't...

Open Graph Description: I understand that 3d plotting is as yet a bit hacky, but from what little I understand of the code for Path3DCollection (or is it Patch3DCollection as the docstring for scatter says?), it feels lik...

X Description: I understand that 3d plotting is as yet a bit hacky, but from what little I understand of the code for Path3DCollection (or is it Patch3DCollection as the docstring for scatter says?), it feels lik...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5830

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect overlap of markers in scatter3D","articleBody":"I understand that 3d plotting is as yet a bit hacky, but from what little I understand of the code for `Path3DCollection` (or is it `Patch3DCollection` as the docstring for scatter says?), it feels like this should be fixable (patches aren't intersecting each other here).\n\nI'm using Matplotlib v1.5.0. The zorder of markers plotted by 3d scatter goes wrong in certain views.\n\nHere's a minimal example:\n\n``` py\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\nx = np.array([-1, 0, 1])\ny = np.array([0, 0, 0])\nfig = plt.figure()\nax = fig.add_subplot(111, projection='3d')\npatches = ax.scatter(x, y, y, s=2500, c=x)\nplt.show()\n```\n\nI've made the marker sizes really huge to illustrate the point clearly - in the initial view, the overlap is correct (in this example), but on rotation, it goes wrong:\n![front_view](https://cloud.githubusercontent.com/assets/846320/12228153/5a2a1d84-b85d-11e5-965e-062fdd6999f8.png)\n![back_view](https://cloud.githubusercontent.com/assets/846320/12228157/65581eae-b85d-11e5-86fb-103708271807.png)\n\nIt's not fully clear because of the depthshading, but red is on top of green, which is on top of blue.\nIt definitely looks like _some_ zorder information is present - depthshade is using it correctly - but it's not being used to update the drawing order correctly.\n\nThis problem gets severely exacerbated as the number of scatter points increases. To demonstrate, execution of [this](https://gist.github.com/praveenv253/5927af4f22b4d441ac4f) gist produces the following ugly result:\n![sphere](https://cloud.githubusercontent.com/assets/846320/12228389/e2b23378-b860-11e5-9624-6981d6ef68b0.png)\nThe sphere ought to be mostly red (it's the top view of a spherical grid with color=z-coordinate), instead it's mostly blue because of poor ordering. Rotating it will make it seem like there are holes in the sphere at different places because of incorrect overlap in some strange patterns.\n","author":{"url":"https://github.com/praveenv253","@type":"Person","name":"praveenv253"},"datePublished":"2016-01-11T07:20:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/5830/matplotlib/issues/5830"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16b09d06-3eb2-4009-f1db-ca21980d97c8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEAFC:145779:4933F:6C268:6A55D99D
html-safe-nonceca6859e4daf7bcab5ee5a5c4f285c038416b8ce32c2843927fc31859bd2dc9d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUZDOjE0NTc3OTo0OTMzRjo2QzI2ODo2QTU1RDk5RCIsInZpc2l0b3JfaWQiOiI1Njk0MDU3OTMyNDUyNjQ5Mzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5d814bcb726465db525018fb2a4e6e4183f749002a4f1972f122511ced782096
hovercard-subject-tagissue:125886805
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/5830/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5a8200a6cbeb730a2090750143ae8e591eac3ef3768b95a3601f448e3f1812fe/matplotlib/matplotlib/issues/5830
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5a8200a6cbeb730a2090750143ae8e591eac3ef3768b95a3601f448e3f1812fe/matplotlib/matplotlib/issues/5830
og:image:altI understand that 3d plotting is as yet a bit hacky, but from what little I understand of the code for Path3DCollection (or is it Patch3DCollection as the docstring for scatter says?), it feels lik...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepraveenv253
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8f8e1726192df8dce16872ceb503336c12e9ae78
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/5830#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F5830
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F5830
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/5830
Reloadhttps://github.com/matplotlib/matplotlib/issues/5830
Reloadhttps://github.com/matplotlib/matplotlib/issues/5830
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/5830
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/5830
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Incorrect overlap of markers in scatter3Dhttps://github.com/matplotlib/matplotlib/issues/5830#top
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
topic: mplot3dhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20mplot3d%22
v3.3.0https://github.com/matplotlib/matplotlib/milestone/48
https://github.com/praveenv253
praveenv253https://github.com/praveenv253
on Jan 11, 2016https://github.com/matplotlib/matplotlib/issues/5830#issue-125886805
https://cloud.githubusercontent.com/assets/846320/12228153/5a2a1d84-b85d-11e5-965e-062fdd6999f8.png
https://cloud.githubusercontent.com/assets/846320/12228157/65581eae-b85d-11e5-86fb-103708271807.png
thishttps://gist.github.com/praveenv253/5927af4f22b4d441ac4f
https://cloud.githubusercontent.com/assets/846320/12228389/e2b23378-b860-11e5-9624-6981d6ef68b0.png
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
topic: mplot3dhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20mplot3d%22
v3.3.0https://github.com/matplotlib/matplotlib/milestone/48
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.