Title: MNT: Refactor matplotlib.colors.from_levels_and_colors() by timhoffm · Pull Request #29127 · matplotlib/matplotlib · GitHub
Open Graph Title: MNT: Refactor matplotlib.colors.from_levels_and_colors() by timhoffm · Pull Request #29127 · matplotlib/matplotlib
X Title: MNT: Refactor matplotlib.colors.from_levels_and_colors() by timhoffm · Pull Request #29127 · matplotlib/matplotlib
Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
Open Graph Description: Primary motivation was to remove the N parameter to ListedColormap (in preparation of its deprecation #28763 (comment)). That parameter is not needed here because len(colors[color_slice]) == n_data...
X Description: Primary motivation was to remove the N parameter to ListedColormap (in preparation of its deprecation #28763 (comment)). That parameter is not needed here because len(colors[color_slice]) == n_data...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/29127
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:e4f71e1e-a008-a4a1-ec6d-7b038953e8e7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CD30:20DB79:1AAA4:22AE7:6A52490D |
| html-safe-nonce | 3bcdf9e70534025a335177d207c997af5ea7a11c29f6708adcb164c81fecfedf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDMwOjIwREI3OToxQUFBNDoyMkFFNzo2QTUyNDkwRCIsInZpc2l0b3JfaWQiOiIyMDY4MTIzNjI3Nzk1MTM4ODI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c7a59c32bd6098e67db55c0c3368245b2f81c50ea438f2167a65cd05ac0b707 |
| hovercard-subject-tag | pull_request:2175223125 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/voltron/pull_requests/show/matplotlib/matplotlib/29127/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/ae2777fa7d4fe0a99d12ff19cfdcf9c85738e0843065c0c2d40e91c75f4ef8f0/matplotlib/matplotlib/pull/29127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae2777fa7d4fe0a99d12ff19cfdcf9c85738e0843065c0c2d40e91c75f4ef8f0/matplotlib/matplotlib/pull/29127 |
| og:image:alt | Primary motivation was to remove the N parameter to ListedColormap (in preparation of its deprecation #28763 (comment)). That parameter is not needed here because len(colors[color_slice]) == n_data... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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