Title: copy a color map object does not isolate changes to cm · Issue #8299 · matplotlib/matplotlib · GitHub
Open Graph Title: copy a color map object does not isolate changes to cm · Issue #8299 · matplotlib/matplotlib
X Title: copy a color map object does not isolate changes to cm · Issue #8299 · matplotlib/matplotlib
Description: If you do cm2 = copy.copy(cm) and the original color map has been used at least once, then the copy will share a reference to self._lut (which is what is used to __call__ to map from values -> rgba). Any calls to set_over, set_under, or ...
Open Graph Description: If you do cm2 = copy.copy(cm) and the original color map has been used at least once, then the copy will share a reference to self._lut (which is what is used to __call__ to map from values -> rgba...
X Description: If you do cm2 = copy.copy(cm) and the original color map has been used at least once, then the copy will share a reference to self._lut (which is what is used to __call__ to map from values -> r...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8299
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"copy a color map object does not isolate changes to cm","articleBody":"If you do `cm2 = copy.copy(cm)` and the original color map has been used at least once, then the copy will share a reference to `self._lut` (which is what is used to `__call__` to map from values -\u003e rgba). Any calls to `set_over`, `set_under`, or `set_bad` will be shared by all copies (as they update `self._lut` in place).","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2017-03-15T01:01:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/8299/matplotlib/issues/8299"}
| 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:29d8c907-43ec-24f9-c986-4b2612221e91 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBAE:290D1F:2CA3F96:3D0A86A:6A53D3C2 |
| html-safe-nonce | 3f41da5b17115ae0a00160d955f6d072eb6b1fa79f09b3f23b0e8e3876e09380 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkFFOjI5MEQxRjoyQ0EzRjk2OjNEMEE4NkE6NkE1M0QzQzIiLCJ2aXNpdG9yX2lkIjoiNjI0MTQ1MTE5MjIwNTE2OTYwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 102bc29019a7c7535aefbfeaa9d71905474854857b86bb626716d0a22a6c7757 |
| hovercard-subject-tag | issue:214252099 |
| 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/8299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b99245ff973eed60e977f489b45e9abb9c1c71dbadb98adb4f3cec1c562b4f35/matplotlib/matplotlib/issues/8299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b99245ff973eed60e977f489b45e9abb9c1c71dbadb98adb4f3cec1c562b4f35/matplotlib/matplotlib/issues/8299 |
| og:image:alt | If you do cm2 = copy.copy(cm) and the original color map has been used at least once, then the copy will share a reference to self._lut (which is what is used to __call__ to map from values -> rgba... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width