Title: DeprecationWarning when changing color maps · Issue #19609 · matplotlib/matplotlib · GitHub
Open Graph Title: DeprecationWarning when changing color maps · Issue #19609 · matplotlib/matplotlib
X Title: DeprecationWarning when changing color maps · Issue #19609 · matplotlib/matplotlib
Description: Summary In v3.4.0rc1, calls to a colormap's set_bad, set_under, and set_over functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. This seems overly protective. If users have ca...
Open Graph Description: Summary In v3.4.0rc1, calls to a colormap's set_bad, set_under, and set_over functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. This s...
X Description: Summary In v3.4.0rc1, calls to a colormap's set_bad, set_under, and set_over functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. Th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19609
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DeprecationWarning when changing color maps","articleBody":"**Summary**\r\n\r\nIn v3.4.0rc1, calls to a colormap's `set_bad`, `set_under`, and `set_over` functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. This seems overly protective. If users have called any of these routines, then they are presumably doing so intentionally, probably after reading the documentation. This seems like the kind of routine customization that any user might expect to perform without going through the hoop of copying a color map every time. \r\n\r\n### Proposed fix\r\n\r\nRemove the calls to `_warn_if_global_cmap_modified(self)` in the `Colormap.set_bad`, `set_under`, and `set_over` functions in `color.py` and change future plans to disallow such calls. \r\n","author":{"url":"https://github.com/rayosborn","@type":"Person","name":"rayosborn"},"datePublished":"2021-03-01T14:27:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/19609/matplotlib/issues/19609"}
| 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:9a15e7b5-e691-64ba-051f-5ad03df8121b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB36:2BEA70:D8FE27:127B9E5:6A521621 |
| html-safe-nonce | c506a25245d00e3e08b05e11c113e2a21d629adbc7fe531fe4553b532a2d738f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjM2OjJCRUE3MDpEOEZFMjc6MTI3QjlFNTo2QTUyMTYyMSIsInZpc2l0b3JfaWQiOiI5Nzg0NDU0NDc5MDI0MDIwODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b549eafa8c4dfd48dd5489717b52d0401ffe91d632f4da4fbdbdd22a7e93bd40 |
| hovercard-subject-tag | issue:818918988 |
| 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/19609/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d0264f51bcfa22bf33e642e83b316164e804ba838deb1de883d243a4481ca9c/matplotlib/matplotlib/issues/19609 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d0264f51bcfa22bf33e642e83b316164e804ba838deb1de883d243a4481ca9c/matplotlib/matplotlib/issues/19609 |
| og:image:alt | Summary In v3.4.0rc1, calls to a colormap's set_bad, set_under, and set_over functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. This s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rayosborn |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width