Title: 3D collections do not proper handle `edgecolor='face'` · Issue #18931 · matplotlib/matplotlib · GitHub
Open Graph Title: 3D collections do not proper handle `edgecolor='face'` · Issue #18931 · matplotlib/matplotlib
X Title: 3D collections do not proper handle `edgecolor='face'` · Issue #18931 · matplotlib/matplotlib
Description: Bug report Bug summary If the edge color is 'face' on some (all?) of the 3D version of the collections we lose that fact and end up "locking in" the first colors that we render. Code for reproduction This test currently fails, it should ...
Open Graph Description: Bug report Bug summary If the edge color is 'face' on some (all?) of the 3D version of the collections we lose that fact and end up "locking in" the first colors that we render. Code for reproducti...
X Description: Bug report Bug summary If the edge color is 'face' on some (all?) of the 3D version of the collections we lose that fact and end up "locking in" the first colors that we render. C...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18931
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3D collections do not proper handle `edgecolor='face'`","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\nIf the edge color is `'face'` on some (all?) of the 3D version of the collections we lose that fact and end up \"locking in\" the first colors that we render.\r\n\r\n**Code for reproduction**\r\n\r\nThis test currently fails, it should pass. The issue (once #18929 is merged) fails due to the edges still being jet colored.\r\n\r\n```python\r\n@pytest.mark.style('default')\r\n@check_figures_equal(extensions=[\"png\"])\r\ndef test_scalarmap_change_cmap(fig_test, fig_ref):\r\n\r\n x, y, z = np.array((list(itertools.product(*[np.arange(0, 5, 1),\r\n np.arange(0, 5, 1),\r\n np.arange(0, 5, 1)])))).T\r\n c = x + y\r\n\r\n # test\r\n ax_test = fig_test.add_subplot(111, projection='3d')\r\n sc_test = ax_test.scatter(x, y, z, c=c, s=40, cmap='jet')\r\n # force a draw\r\n fig_test.canvas.draw()\r\n\r\n sc_test.set_cmap('viridis')\r\n\r\n # ref\r\n ax_ref = fig_ref.add_subplot(111, projection='3d')\r\n sc_ref = ax_ref.scatter(x, y, z, c=c, s=40, cmap='viridis')\r\n\r\n```\r\n\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: any\r\n * Matplotlib version: default branch \r\n * Matplotlib backend (`print(matplotlib.get_backend())`): any\r\n * Python version: any\r\n * Jupyter version (if applicable): any\r\n * Other libraries: --\r\n\r\n---\r\n\r\nThis is a good first issue because there is no API design, but medium difficulty because it will require splunking through the mplot3D code and deciding the best way to do the book keeping that the edgecolors may be \"face\" (which means \"what ever the face colors are\").\r\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2020-11-11T04:25:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/18931/matplotlib/issues/18931"}
| 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:10dddf87-e7a7-162e-d78a-66ab042c4135 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDF8:1C38BA:322A83:432845:6A51695F |
| html-safe-nonce | 50c28047e3155e1c6fbb7846bac3147de96267ae759087ce31c10247eae97525 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREY4OjFDMzhCQTozMjJBODM6NDMyODQ1OjZBNTE2OTVGIiwidmlzaXRvcl9pZCI6IjQxMDQwMDUzODA5OTE5Njk2MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b288e1ba37cc563555d5f6de89677590668fb26dff249341679c721e0b165441 |
| hovercard-subject-tag | issue:740448561 |
| 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/18931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b762f35ec1a3065d9baec12c8badd30990f3197ca830ce108c9d95596d1492f/matplotlib/matplotlib/issues/18931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b762f35ec1a3065d9baec12c8badd30990f3197ca830ce108c9d95596d1492f/matplotlib/matplotlib/issues/18931 |
| og:image:alt | Bug report Bug summary If the edge color is 'face' on some (all?) of the 3D version of the collections we lose that fact and end up "locking in" the first colors that we render. Code for reproducti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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