Title: [Bug]: hist()'s doc for edgecolors/facecolors does not match behavior (which is itself not very consistent) · Issue #28873 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: hist()'s doc for edgecolors/facecolors does not match behavior (which is itself not very consistent) · Issue #28873 · matplotlib/matplotlib
X Title: [Bug]: hist()'s doc for edgecolors/facecolors does not match behavior (which is itself not very consistent) · Issue #28873 · matplotlib/matplotlib
Description: Bug summary The docs for hist state **kwargs `~matplotlib.patches.Patch` properties. The following properties additionally accept a sequence of values corresponding to the datasets in *x*: *edgecolors*, *facecolors*, *lines*, *linestyles...
Open Graph Description: Bug summary The docs for hist state **kwargs `~matplotlib.patches.Patch` properties. The following properties additionally accept a sequence of values corresponding to the datasets in *x*: *edgecol...
X Description: Bug summary The docs for hist state **kwargs `~matplotlib.patches.Patch` properties. The following properties additionally accept a sequence of values corresponding to the datasets in *x*: *edgecol...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28873
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: hist()'s doc for edgecolors/facecolors does not match behavior (which is itself not very consistent)","articleBody":"### Bug summary\r\n\r\nThe docs for `hist` state\r\n```\r\n**kwargs\r\n `~matplotlib.patches.Patch` properties. The following properties\r\n additionally accept a sequence of values corresponding to the\r\n datasets in *x*:\r\n *edgecolors*, *facecolors*, *lines*, *linestyles*, *hatches*.\r\n```\r\nbut this does not match actual behavior\r\n\r\n### Code for reproduction\r\n\r\n```Python\r\nfrom pylab import *\r\nhist(randn(100), facecolor=\"red\") # works\r\nhist(randn(100), fc=\"red\") # silently does nothing\r\nhist(randn(100), facecolors=\"red\") # crashes (Rectangle.set() got an unexpected keyword argument 'facecolors')\r\n\r\n# and likewise for edgecolor(s)\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nSee above.\r\n\r\n### Expected outcome\r\n\r\nAt least the documentation and the behavior should match. Bonus points if all three kwarg forms (facecolor/fc/facecolors) are supported.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nany\r\n\r\n### Matplotlib Version\r\n\r\n3.10.0.dev645+gcb9cf3bbb1\r\n\r\n### Matplotlib Backend\r\n\r\nany\r\n\r\n### Python version\r\n\r\n3.12.2\r\n\r\n### Jupyter version\r\n\r\nno\r\n\r\n### Installation\r\n\r\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2024-09-24T07:23:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/28873/matplotlib/issues/28873"}
| 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:8c1d800f-8170-6cb1-c8ec-ad4a4bdf33b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6C0:23E45A:16163C9:1D1F500:6A51C07A |
| html-safe-nonce | a9d21daccbfa62b75c8ef0532def37d467abb39cad0ec6b9e9d37e5722ed7e9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkMwOjIzRTQ1QToxNjE2M0M5OjFEMUY1MDA6NkE1MUMwN0EiLCJ2aXNpdG9yX2lkIjoiNjI1Mjc3NTU0MzQ5NTgzNTc3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eb3e95d646e3c484b8f818e8f426d8a296b9a92c0cb6c41c1e80a0cd86e399ca |
| hovercard-subject-tag | issue:2544572455 |
| 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/28873/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0987c6d04c1512c1a2d4095381a7bcb72dad23ee4951a1667d28b6ec3e2a3646/matplotlib/matplotlib/issues/28873 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0987c6d04c1512c1a2d4095381a7bcb72dad23ee4951a1667d28b6ec3e2a3646/matplotlib/matplotlib/issues/28873 |
| og:image:alt | Bug summary The docs for hist state **kwargs `~matplotlib.patches.Patch` properties. The following properties additionally accept a sequence of values corresponding to the datasets in *x*: *edgecol... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width