Title: Cairo backend discards alpha channel for collections · Issue #12773 · matplotlib/matplotlib · GitHub
Open Graph Title: Cairo backend discards alpha channel for collections · Issue #12773 · matplotlib/matplotlib
X Title: Cairo backend discards alpha channel for collections · Issue #12773 · matplotlib/matplotlib
Description: Bug report The cairo backend ignores the alpha value of artists when rendering Collections such as PatchCollection. Code for reproduction import matplotlib matplotlib.use('Cairo') import matplotlib.pyplot as plt from matplotlib.collectio...
Open Graph Description: Bug report The cairo backend ignores the alpha value of artists when rendering Collections such as PatchCollection. Code for reproduction import matplotlib matplotlib.use('Cairo') import matplotlib...
X Description: Bug report The cairo backend ignores the alpha value of artists when rendering Collections such as PatchCollection. Code for reproduction import matplotlib matplotlib.use('Cairo') import ma...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12773
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cairo backend discards alpha channel for collections","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nThe cairo backend ignores the alpha value of artists when rendering Collections such as PatchCollection.\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('Cairo')\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib.collections import PatchCollection\r\nimport numpy as np\r\n\r\ncircles = [plt.Circle((i,i), 1.0) for i in np.arange(10)]\r\ncol = PatchCollection(circles, alpha=0.5)\r\nax = plt.gca()\r\nax.add_collection(col)\r\nax.autoscale_view()\r\nplt.savefig('test_cairo_alpha.png')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\nExpected output when using the default `Qt5Agg` backend:\r\n\r\n\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Ubuntu 18.04\r\n * Matplotlib version: master @ 4dbbd22095e32b77053aab403c442934f18ade71\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): cairo\r\n * Python version: 3.6.6\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n","author":{"url":"https://github.com/joh","@type":"Person","name":"joh"},"datePublished":"2018-11-08T13:57:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12773/matplotlib/issues/12773"}
| 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:9e1a3e76-f182-4411-6648-847eb8231812 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF0A:19D71A:D1592B:11F9592:6A53A838 |
| html-safe-nonce | 1cc8b8321b1c21b794e59b1de008f184708fae42c30b94328b5f082988de0c0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjBBOjE5RDcxQTpEMTU5MkI6MTFGOTU5Mjo2QTUzQTgzOCIsInZpc2l0b3JfaWQiOiIzNzQyNzc0NzEyNzI1NjQ1MzY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 207bcf366acf8f038c23b23014d026f4bbb6a27d64915fdf1ac8ff0c7d95c0c6 |
| hovercard-subject-tag | issue:378742397 |
| 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/12773/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7c93e84a31b3b157e492ddec19e58482c32e983e5f44e74e7bacd3aeb3f5516/matplotlib/matplotlib/issues/12773 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7c93e84a31b3b157e492ddec19e58482c32e983e5f44e74e7bacd3aeb3f5516/matplotlib/matplotlib/issues/12773 |
| og:image:alt | Bug report The cairo backend ignores the alpha value of artists when rendering Collections such as PatchCollection. Code for reproduction import matplotlib matplotlib.use('Cairo') import matplotlib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joh |
| 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