Title: 2.x: Cairo backends cannot render images · Issue #6562 · matplotlib/matplotlib · GitHub
Open Graph Title: 2.x: Cairo backends cannot render images · Issue #6562 · matplotlib/matplotlib
X Title: 2.x: Cairo backends cannot render images · Issue #6562 · matplotlib/matplotlib
Description: In testing #6540, I can see that neither Cairo backend is able to render images correctly. With GTKCairo: Traceback (most recent call last): File ".../lib/matplotlib/backends/backend_gtk.py", line 438, in expose_event self._render_figure...
Open Graph Description: In testing #6540, I can see that neither Cairo backend is able to render images correctly. With GTKCairo: Traceback (most recent call last): File ".../lib/matplotlib/backends/backend_gtk.py", line ...
X Description: In testing #6540, I can see that neither Cairo backend is able to render images correctly. With GTKCairo: Traceback (most recent call last): File ".../lib/matplotlib/backends/backend_gtk.py&qu...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"2.x: Cairo backends cannot render images","articleBody":"In testing #6540, I can see that neither Cairo backend is able to render images correctly.\n\nWith GTKCairo:\n\n``` pytb\nTraceback (most recent call last):\n File \".../lib/matplotlib/backends/backend_gtk.py\", line 438, in expose_event\n self._render_figure(self._pixmap, w, h)\n File \".../lib/matplotlib/backends/backend_gtk.py\", line 426, in _render_figure\n self.figure.draw (self._renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/figure.py\", line 1129, in draw\n renderer, self, dsu, self.suppressComposite)\n File \".../lib/matplotlib/image.py\", line 139, in _draw_list_compositing_images\n a.draw(renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/axes/_base.py\", line 2353, in draw\n mimage._draw_list_compositing_images(renderer, self, dsu)\n File \".../lib/matplotlib/image.py\", line 163, in _draw_list_compositing_images\n flush_images()\n File \".../lib/matplotlib/image.py\", line 147, in flush_images\n image_group[0].draw(renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/image.py\", line 464, in draw\n renderer.draw_image(gc, l, b, im)\n File \".../lib/matplotlib/backends/backend_cairo.py\", line 180, in draw_image\n im.shape[1]*4)\nTypeError: expected a writeable buffer object\n```\n\nWith GTK3Cairo:\n\n``` pytb\nTraceback (most recent call last):\n File \".../lib/matplotlib/backends/backend_gtk3cairo.py\", line 45, in on_draw_event\n self._render_figure(w, h)\n File \".../lib/matplotlib/backends/backend_gtk3cairo.py\", line 34, in _render_figure\n self.figure.draw (self._renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/figure.py\", line 1129, in draw\n renderer, self, dsu, self.suppressComposite)\n File \".../lib/matplotlib/image.py\", line 139, in _draw_list_compositing_images\n a.draw(renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/axes/_base.py\", line 2353, in draw\n mimage._draw_list_compositing_images(renderer, self, dsu)\n File \".../lib/matplotlib/image.py\", line 163, in _draw_list_compositing_images\n flush_images()\n File \".../lib/matplotlib/image.py\", line 147, in flush_images\n image_group[0].draw(renderer)\n File \".../lib/matplotlib/artist.py\", line 63, in draw_wrapper\n draw(artist, renderer, *args, **kwargs)\n File \".../lib/matplotlib/image.py\", line 464, in draw\n renderer.draw_image(gc, l, b, im)\n File \".../lib/matplotlib/backends/backend_cairo.py\", line 180, in draw_image\n im.shape[1]*4)\nTypeError: expected a writeable buffer object\n```\n\nBisect points to 659513951920d83fe6ef68ec40dd72f7bd6d6653, the backport of #5718.\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2016-06-08T21:00:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6562/matplotlib/issues/6562"}
| 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:e362b71a-72a2-48d7-baac-9630fc42d0f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCFE:31B7E9:F7140:14FB01:6A5259FD |
| html-safe-nonce | c0f7065790de1623b0864cbe1d884f22c0c0562f8fc58ad748705a2e4f68dd59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0ZFOjMxQjdFOTpGNzE0MDoxNEZCMDE6NkE1MjU5RkQiLCJ2aXNpdG9yX2lkIjoiNzM2MjIxMDE0MzQ1MzQ2OTE4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b82703897501b8653e1b26b4cd1636758ce55283dcf63ec8fce2e973314c1bbe |
| hovercard-subject-tag | issue:159270799 |
| 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/6562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/729c1851b286fb924dc8400dc4efccbff133d4d1256a7e58716b228bd53e2c4f/matplotlib/matplotlib/issues/6562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/729c1851b286fb924dc8400dc4efccbff133d4d1256a7e58716b228bd53e2c4f/matplotlib/matplotlib/issues/6562 |
| og:image:alt | In testing #6540, I can see that neither Cairo backend is able to render images correctly. With GTKCairo: Traceback (most recent call last): File ".../lib/matplotlib/backends/backend_gtk.py", line ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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