Title: Add a method to access the list of registered colormaps · Issue #18490 · matplotlib/matplotlib · GitHub
Open Graph Title: Add a method to access the list of registered colormaps · Issue #18490 · matplotlib/matplotlib
X Title: Add a method to access the list of registered colormaps · Issue #18490 · matplotlib/matplotlib
Description: Describe the issue I noticed that the linked issues to PR #16991 all want a public way to access the registered colormap names without resorting to importing pyplot. That PR removed the cm.cmap_d dictionary, but left nothing in its place...
Open Graph Description: Describe the issue I noticed that the linked issues to PR #16991 all want a public way to access the registered colormap names without resorting to importing pyplot. That PR removed the cm.cmap_d d...
X Description: Describe the issue I noticed that the linked issues to PR #16991 all want a public way to access the registered colormap names without resorting to importing pyplot. That PR removed the cm.cmap_d d...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a method to access the list of registered colormaps","articleBody":"### Describe the issue\r\n\r\nI noticed that the linked issues to PR\r\nhttps://github.com/matplotlib/matplotlib/pull/16991\r\nall want a public way to access the registered colormap names without resorting to importing pyplot. That PR removed the cm.cmap_d dictionary, but left nothing in its place.\r\n\r\nThere were a few suggestions in this thread: https://github.com/matplotlib/matplotlib/pull/16991#discussion_r415267245\r\n\r\n**Summary**\r\n\r\nCreate a way to access the keys of the colormap registry within the `mpl.cm` module.\r\n\r\n### Proposed fix\r\n\r\nSome ideas:\r\n`mpl.cm.get_cmap_names()`\r\n`mpl.cm.get_registered_cmaps()`\r\nkeeping consistency with pyplot: `mpl.cm.colormaps()`\r\n... something else entirely","author":{"url":"https://github.com/greglucas","@type":"Person","name":"greglucas"},"datePublished":"2020-09-15T15:10:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18490/matplotlib/issues/18490"}
| 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:2470567a-ac65-07ef-db78-3f4bd6152b5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7D2:24C5C6:2817196:35A5522:6A521637 |
| html-safe-nonce | 59c9334d0e8f2434cd9f4854f77d1b7792599268bc81cd697fb6163ced7a5b3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0QyOjI0QzVDNjoyODE3MTk2OjM1QTU1MjI6NkE1MjE2MzciLCJ2aXNpdG9yX2lkIjoiNDAzMDg5NTU0NTczNjM2OTcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1a2a5853d62ce641f4c46fe3e61fe322e0ee5ad67b13e0d4cb4471418dd3e435 |
| hovercard-subject-tag | issue:702017275 |
| 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/18490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72fe0d0898d62d44741296a870f1cdd153794cad507f3005a64c87f4e4415fd5/matplotlib/matplotlib/issues/18490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72fe0d0898d62d44741296a870f1cdd153794cad507f3005a64c87f4e4415fd5/matplotlib/matplotlib/issues/18490 |
| og:image:alt | Describe the issue I noticed that the linked issues to PR #16991 all want a public way to access the registered colormap names without resorting to importing pyplot. That PR removed the cm.cmap_d d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | greglucas |
| 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