Title: should cm be renamed to colormaps? · Issue #1476 · matplotlib/matplotlib · GitHub
Open Graph Title: should cm be renamed to colormaps? · Issue #1476 · matplotlib/matplotlib
X Title: should cm be renamed to colormaps? · Issue #1476 · matplotlib/matplotlib
Description: It's a bit confusing to have a proper module have such a short, non-descriptive name. Looking at code that uses it, if one were to see from matplotlib import cm - they'd be left wondering what those two letters could possibly stand for. ...
Open Graph Description: It's a bit confusing to have a proper module have such a short, non-descriptive name. Looking at code that uses it, if one were to see from matplotlib import cm - they'd be left wondering what thos...
X Description: It's a bit confusing to have a proper module have such a short, non-descriptive name. Looking at code that uses it, if one were to see from matplotlib import cm - they'd be left wondering w...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/1476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"should cm be renamed to colormaps?","articleBody":"It's a bit confusing to have a proper module have such a short, non-descriptive name.\n\nLooking at code that uses it, if one were to see `from matplotlib import cm` - they'd be left wondering what those two letters could possibly stand for. Then further down, they'd see it being used with a keyword argument that would shed some light, such as `cmap = cm.RdBu`, and they would maybe go through the steps of \"oh, it's a map... probably a color map\"...maybe...\n\nIf the import code was written as `from matplotlib import colormaps as cm`, it'd be more clear. We would retain the dangling `plt.cm` and have a dummy `matplotlib.cm` module which would just import everything from `matplotlib.colormaps`.\n\nas a bonus, I think `plt.colormaps` should be retained, but the code and documentation for it should live inside this new colormaps module.\n","author":{"url":"https://github.com/ivanov","@type":"Person","name":"ivanov"},"datePublished":"2012-11-10T09:23:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1476/matplotlib/issues/1476"}
| 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:db01d621-8906-7576-683b-9afc458ac48a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEC8:272982:26D0AF:31E0AF:6A52EA74 |
| html-safe-nonce | cb1a1bb08499ec3daa2258ace2a454a39ac005cd18b873d8c2cbd3250ff23784 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUM4OjI3Mjk4MjoyNkQwQUY6MzFFMEFGOjZBNTJFQTc0IiwidmlzaXRvcl9pZCI6IjY5MDkzNzA1MTE0MTI4ODIwMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d66a3030ac95383c697cb95a8157f71a54414356567d5aba7b6dd44b6e3f6ca |
| hovercard-subject-tag | issue:8260272 |
| 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/1476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24701f7abf3bda1dbfcfe785d18e267fb5622920b3b53d28b48f4f4a9d8d45b4/matplotlib/matplotlib/issues/1476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24701f7abf3bda1dbfcfe785d18e267fb5622920b3b53d28b48f4f4a9d8d45b4/matplotlib/matplotlib/issues/1476 |
| og:image:alt | It's a bit confusing to have a proper module have such a short, non-descriptive name. Looking at code that uses it, if one were to see from matplotlib import cm - they'd be left wondering what thos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivanov |
| 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