Title: [ENH]: set facecolor and edgecolor alpha separately · Issue #24681 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: set facecolor and edgecolor alpha separately · Issue #24681 · matplotlib/matplotlib
X Title: [ENH]: set facecolor and edgecolor alpha separately · Issue #24681 · matplotlib/matplotlib
Description: Problem I like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries Since alpha applies to the whole patch, the way I do th...
Open Graph Description: Problem I like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries Since alpha app...
X Description: Problem I like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries Since alpha...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24681
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: set facecolor and edgecolor alpha separately","articleBody":"### Problem\n\nI like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries\r\n\r\n\r\n\r\nSince alpha applies to the whole patch, the way I do this now is by converting my HTML colors into RGBs and appending an A\r\n\r\n```python\r\nedgecolor=x_color, facecolor=(*mcolors.to_rgb(x_color), .10)\r\n```\r\n\nETA: apparently I could also just do `facecolor = mcolors.to_rgba(x_color, .10)`\r\n\n\n### Proposed solution\n\nAllow alpha to take a `(facecolor, fillcolor)` tuple for patch methods. As an example of prior art, we allow vectorized/separable alphas in imshow as of #14889","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2022-12-09T20:26:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/24681/matplotlib/issues/24681"}
| 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:a9a387ce-0945-3fc8-5ddc-d9cfc4c84708 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7FE:118815:3177433:461FBA2:6A51239B |
| html-safe-nonce | 007a7c048d17fde34c17a8297f734325ee4396e9492a6d9fdfedd132cc5b6a77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0ZFOjExODgxNTozMTc3NDMzOjQ2MUZCQTI6NkE1MTIzOUIiLCJ2aXNpdG9yX2lkIjoiMzk3MjgyMjY3ODc0Njc2ODI4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01f9c07d23b509b0324a95b73e9d1961f25b41d17902c5c8eaedf937065587a6 |
| hovercard-subject-tag | issue:1487407085 |
| 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/24681/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccb9762d638d9b9e7d5773f43b8caab5d724edfb615f422ef1c30170a10c772f/matplotlib/matplotlib/issues/24681 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccb9762d638d9b9e7d5773f43b8caab5d724edfb615f422ef1c30170a10c772f/matplotlib/matplotlib/issues/24681 |
| og:image:alt | Problem I like making diagrams where my patch edge is solid but the fill is semi-transparent - in my case usually to fade out the color, but it's also useful to emphasize boundaries Since alpha app... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width