Title: Transparency not respected in legendPatch · Issue #3766 · matplotlib/matplotlib · GitHub
Open Graph Title: Transparency not respected in legendPatch · Issue #3766 · matplotlib/matplotlib
X Title: Transparency not respected in legendPatch · Issue #3766 · matplotlib/matplotlib
Description: It seems after Matplotlib 1.3.1 (1.4.1, 1.4.2, not sure about 1.4.0) that setting the transparency of the facecolor or edgecolor properties of a legendPatch is not respected. Both properties can be changed together using legendPatch.set_...
Open Graph Description: It seems after Matplotlib 1.3.1 (1.4.1, 1.4.2, not sure about 1.4.0) that setting the transparency of the facecolor or edgecolor properties of a legendPatch is not respected. Both properties can be...
X Description: It seems after Matplotlib 1.3.1 (1.4.1, 1.4.2, not sure about 1.4.0) that setting the transparency of the facecolor or edgecolor properties of a legendPatch is not respected. Both properties can be...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3766
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transparency not respected in legendPatch","articleBody":"It seems after Matplotlib 1.3.1 (1.4.1, 1.4.2, not sure about 1.4.0) that setting the transparency of the `facecolor` or `edgecolor` properties of a `legendPatch` is not respected. Both properties can be changed together using `legendPatch.set_alpha(...)`, but they cannot be set independently. Following is a MWE. Here, the legend's `facecolor` is changed, but the alpha specification (0.2) is ignored. A call to `legendPatch.get_facecolor()` confirms this.\n\n``` python\nimport matplotlib.pyplot as plt\n\nplt.plot(range(10))\nleg = plt.legend(['Line'])\nleg.legendPatch.set_facecolor([0.5,1,0.5,0.2])\n```\n","author":{"url":"https://github.com/mrclary","@type":"Person","name":"mrclary"},"datePublished":"2014-11-08T01:33:45Z","url":"https://github.com/matplotlib/matplotlib/issues/3766"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7c2c8ab2-2b3a-6ddf-2576-718bf9f3c0bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF38:1E2325:3A3DA6:500680:6B068311 |
| html-safe-nonce | 3cdd1ed52bb2e13aeee41413517f9b07447ebd4018fa5c6662a0cf09a41618fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjM4OjFFMjMyNTozQTNEQTY6NTAwNjgwOjZCMDY4MzExIiwidmlzaXRvcl9pZCI6IjI4Nzk1MzAxMTIwODc2NTUxODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e3d2d0c33b89ee1d78b7c6d48cc306b1743b0afc3a422cc763e7fc36efb08694 |
| hovercard-subject-tag | issue:48150356 |
| 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/3766/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc382474b84e4684bdd7fb5fe9be9bc589e4c1ae5467e58890a0e01950f1ccba/matplotlib/matplotlib/issues/3766 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc382474b84e4684bdd7fb5fe9be9bc589e4c1ae5467e58890a0e01950f1ccba/matplotlib/matplotlib/issues/3766 |
| og:image:alt | It seems after Matplotlib 1.3.1 (1.4.1, 1.4.2, not sure about 1.4.0) that setting the transparency of the facecolor or edgecolor properties of a legendPatch is not respected. Both properties can be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrclary |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width