Title: BUG: Lost functionality of interactive selector update · Issue #20618 · matplotlib/matplotlib · GitHub
Open Graph Title: BUG: Lost functionality of interactive selector update · Issue #20618 · matplotlib/matplotlib
X Title: BUG: Lost functionality of interactive selector update · Issue #20618 · matplotlib/matplotlib
Description: In MNE we allow users to update the selector colors, and have: selector.rect.set_color(color) selector.rectprops.update(dict(facecolor=color)) This now emits a deprecation warning from #20113, but it doesn't indicate how code should be m...
Open Graph Description: In MNE we allow users to update the selector colors, and have: selector.rect.set_color(color) selector.rectprops.update(dict(facecolor=color)) This now emits a deprecation warning from #20113, but ...
X Description: In MNE we allow users to update the selector colors, and have: selector.rect.set_color(color) selector.rectprops.update(dict(facecolor=color)) This now emits a deprecation warning from #20113, but ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: Lost functionality of interactive selector update","articleBody":"In MNE we allow users to update the selector colors, and have:\r\n```\r\n selector.rect.set_color(color)\r\n selector.rectprops.update(dict(facecolor=color))\r\n```\r\nThis now emits a deprecation warning from #20113, but it doesn't indicate how code should be migrated. I looked at this and #20558 and hoped / thought maybe I could find some `selector.set_*` or `selector.handle_props` or something to modify but I don't see anything. How should we update our code? (And it might be worth improving the deprecation warning to give some hints to anyone else who hits this issue.) Maybe with something like this?\r\n```\r\nselector.artists[0].set_color(color)\r\n```\r\nthe `artists[0]` is the `selector.rect`. But this just seems like a hack workaround, and if there are properties held internally it will not \"stick\" so I'm guessing it's not the right idea...\r\n\r\n_Originally posted by @larsoner in https://github.com/matplotlib/matplotlib/issues/20113#issuecomment-877345562_","author":{"url":"https://github.com/larsoner","@type":"Person","name":"larsoner"},"datePublished":"2021-07-09T17:56:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/20618/matplotlib/issues/20618"}
| 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:658570f8-3640-d121-3813-bf34b33fa512 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8440:371C7C:96CE18:D88A98:6A549BED |
| html-safe-nonce | d63034e6645a7c90951e6a3f0ebf371bd12a7d822d7a29ed260ef53ef764d8c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDQwOjM3MUM3Qzo5NkNFMTg6RDg4QTk4OjZBNTQ5QkVEIiwidmlzaXRvcl9pZCI6IjQwNDIxNjI2NTc5OTgxODM0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 576e37135c80bcecb12710cb1cffd760da1c4e4d19613fa1a033d2f55f9e0823 |
| hovercard-subject-tag | issue:940963102 |
| 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/20618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68d181f57485758719266a8c503347a46828debc48d1e85cb24b9c54fb30635b/matplotlib/matplotlib/issues/20618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68d181f57485758719266a8c503347a46828debc48d1e85cb24b9c54fb30635b/matplotlib/matplotlib/issues/20618 |
| og:image:alt | In MNE we allow users to update the selector colors, and have: selector.rect.set_color(color) selector.rectprops.update(dict(facecolor=color)) This now emits a deprecation warning from #20113, but ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | larsoner |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width