Title: [ENH]: Expand `hist()` signature to support aliases and plural kwargs · Issue #28884 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Expand `hist()` signature to support aliases and plural kwargs · Issue #28884 · matplotlib/matplotlib
X Title: [ENH]: Expand `hist()` signature to support aliases and plural kwargs · Issue #28884 · matplotlib/matplotlib
Description: Problem #28073 added support for arrays on edgecolor, facecolor, linewidth, linestyle, hatch. #28873 noted that we do not support the arrays for the aliases ec, fc, ... We also do not support plural versions of these parameters edgecolor...
Open Graph Description: Problem #28073 added support for arrays on edgecolor, facecolor, linewidth, linestyle, hatch. #28873 noted that we do not support the arrays for the aliases ec, fc, ... We also do not support plura...
X Description: Problem #28073 added support for arrays on edgecolor, facecolor, linewidth, linestyle, hatch. #28873 noted that we do not support the arrays for the aliases ec, fc, ... We also do not support plura...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28884
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Expand `hist()` signature to support aliases and plural kwargs","articleBody":"### Problem\n\n#28073 added support for arrays on *edgecolor*, *facecolor*, *linewidth*, *linestyle*, *hatch*.\r\n\r\n#28873 noted that we do not support the arrays for the aliases *ec*, *fc*, ... We also do not support plural versions of these parameters *edgecolors*, *facecolors*, ...\r\n\r\nThis is a reasonable expectation.\n\n### Proposed solution\n\n- Alias support should be added.\r\n- I believe we should come up with a clearer general strategy on singular/plural versions of the kwargs. Some initial thoughts:\r\n - Make a survey of which functions already support array properties and via which APIs.\r\n - the singular versions exist as pass-through. They need to be supported anyway. We could (i) only accept singular values there or (ii) also accept sequences. (ii) seems the more user-friendly approach and is implemented in some APIs already.\r\n - if we support plurals, we need to internally merge the single and plural variants, same with aliases. We likely should make helper functions for this. Can aliases be reused?\r\n\r\n","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2024-09-25T09:29:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28884/matplotlib/issues/28884"}
| 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:d78616d3-6094-2bad-80e5-01a206d46af0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDEC:ACE83:52203D:6E04E9:6A519A64 |
| html-safe-nonce | 350cbc4b39abf39dffe4b3b8697a6da017f885e36f305e655863ab3898d23ca8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREVDOkFDRTgzOjUyMjAzRDo2RTA0RTk6NkE1MTlBNjQiLCJ2aXNpdG9yX2lkIjoiMzAxOTA5MTU0Mzg5NjIwMTgyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86c58d81238efa72e5fc79564b8ef28f649518738644e36e74bcc85d4058e975 |
| hovercard-subject-tag | issue:2547466254 |
| 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/28884/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fec70060c2d7cb64424da29a6e5500ff32065cfa9c2bb7ee6614e2b748db1cd2/matplotlib/matplotlib/issues/28884 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fec70060c2d7cb64424da29a6e5500ff32065cfa9c2bb7ee6614e2b748db1cd2/matplotlib/matplotlib/issues/28884 |
| og:image:alt | Problem #28073 added support for arrays on edgecolor, facecolor, linewidth, linestyle, hatch. #28873 noted that we do not support the arrays for the aliases ec, fc, ... We also do not support plura... |
| 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-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