Title: mplot3d: set_offsets()/set_array() don't work right for 3d collections · Issue #784 · matplotlib/matplotlib · GitHub
Open Graph Title: mplot3d: set_offsets()/set_array() don't work right for 3d collections · Issue #784 · matplotlib/matplotlib
X Title: mplot3d: set_offsets()/set_array() don't work right for 3d collections · Issue #784 · matplotlib/matplotlib
Description: It's easy to make animated/interactive 2d plots with PatchCollections, where one can dynamically alter the positions, colors (if using a ScalarMappable colormap), and number of active patches using the set_offsets() and set_array() comma...
Open Graph Description: It's easy to make animated/interactive 2d plots with PatchCollections, where one can dynamically alter the positions, colors (if using a ScalarMappable colormap), and number of active patches using...
X Description: It's easy to make animated/interactive 2d plots with PatchCollections, where one can dynamically alter the positions, colors (if using a ScalarMappable colormap), and number of active patches u...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/784
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mplot3d: set_offsets()/set_array() don't work right for 3d collections","articleBody":"It's easy to make animated/interactive 2d plots with PatchCollections, where one can dynamically alter the positions, colors (if using a ScalarMappable colormap), and number of active patches using the `set_offsets()` and `set_array()` commands.\n\nThis doesn't work quite right for, e.g., Patch3DCollection objects. One can work around `set_offsets()` by setting the `_offsets3d` attribute directly, and that seems to work fine, but perhaps this could be bundled up into a `set_offsets()` method?\n\nIt's trickier for changing the colormap values with `set_array()`, because there's no clear hook for how to invoke the zalpha() function appropriately. Worse, at times I'm able to re-create the \"patches lose their color and turn gray\" bug when directly setting these values -- but I can't exactly figure out where or when. I'm working on a test case for this...\n\nI can try to work up a patch for this, but if @WeatherGod or anyone else could give a hint or two as to the best approach, that would be helpful! I'm thinking that `set_3d_properties()` and `do_3d_projection()` have basically the logic required, which could be refactored into `set_offsets()` and `set_array()` calls that would do the right things...\n\nPS. Last issue for today, I promise -- sorry for the spam!\n","author":{"url":"https://github.com/zpincus","@type":"Person","name":"zpincus"},"datePublished":"2012-03-21T20:02:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/784/matplotlib/issues/784"}
| 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:f5af3cd5-a298-7215-5a5f-ec2557d20c4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96F4:306788:255288:313191:6A5289DA |
| html-safe-nonce | cf5c7c413fe57f6ad9d6155b3c657a930b270e6f8b649039bbd6678fbf70fed6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkY0OjMwNjc4ODoyNTUyODg6MzEzMTkxOjZBNTI4OURBIiwidmlzaXRvcl9pZCI6Ijg5NjA2MDQzNzYxMDExOTQyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | badb1ffd1bcb4e68ba548e03431b44485b935d48259152e63634b051b9e49b2b |
| hovercard-subject-tag | issue:3752538 |
| 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/784/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8a764aa5934b762204361c021398dde5b90675c63a9245f185d0e6e27dec5b1/matplotlib/matplotlib/issues/784 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8a764aa5934b762204361c021398dde5b90675c63a9245f185d0e6e27dec5b1/matplotlib/matplotlib/issues/784 |
| og:image:alt | It's easy to make animated/interactive 2d plots with PatchCollections, where one can dynamically alter the positions, colors (if using a ScalarMappable colormap), and number of active patches using... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zpincus |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width