Title: Inverted imshow using Cairo backend · Issue #7156 · matplotlib/matplotlib · GitHub
Open Graph Title: Inverted imshow using Cairo backend · Issue #7156 · matplotlib/matplotlib
X Title: Inverted imshow using Cairo backend · Issue #7156 · matplotlib/matplotlib
Description: In testing some stuff for #7151, I realized that the Cairo backend inverts images plotted using imshow. import matplotlib as mpl mpl.use('Cairo') import numpy as np import matplotlib.pyplot as plt a = np.random.randn(3,3) im1 = plt.imsho...
Open Graph Description: In testing some stuff for #7151, I realized that the Cairo backend inverts images plotted using imshow. import matplotlib as mpl mpl.use('Cairo') import numpy as np import matplotlib.pyplot as plt ...
X Description: In testing some stuff for #7151, I realized that the Cairo backend inverts images plotted using imshow. import matplotlib as mpl mpl.use('Cairo') import numpy as np import matplotlib.pyplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7156
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inverted imshow using Cairo backend","articleBody":"In testing some stuff for #7151, I realized that the Cairo backend inverts images plotted using `imshow`.\n\n``` python\nimport matplotlib as mpl\nmpl.use('Cairo')\nimport numpy as np\nimport matplotlib.pyplot as plt\n\na = np.random.randn(3,3)\n\nim1 = plt.imshow(a, extent = [0,1,0,1])\nplt.xlim(0,2.2)\nplt.ylim(0,2.2)\n\nplt.savefig('test.png')\n```\n\nIt doesn't really matter if saving as png or pdf, the outcome is the same. With Agg, the image appears in the lower left corner:\n\nWith Cairo, the image appears in the upper left corner:\n\n\nIt worked correctly with mpl 1.4.3 and is broken with 1.5.0, but bisection is next to impossible because the Cairo backend was broken for a very long time.\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2016-09-22T03:41:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/7156/matplotlib/issues/7156"}
| 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:7be0511f-8c0a-98fd-ebd8-3d6b2e5ae299 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A420:2D523B:46775:5E189:6A52DD50 |
| html-safe-nonce | 3a395e586e3119b93ad7fdabe2b3616fde31ea272bc0795420e81af9ab5b2a5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDIwOjJENTIzQjo0Njc3NTo1RTE4OTo2QTUyREQ1MCIsInZpc2l0b3JfaWQiOiI1ODc4MjE3Nzg0OTgzNDc3NTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4f7c081d01697bccd6db3d33831dad2e9203f48386462ee4a9434a735f24b77d |
| hovercard-subject-tag | issue:178515006 |
| 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/7156/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c429faeb409b3fc6e08d7a8e7e7ccf4977aa3424fd5fd724d0966f4426142fd0/matplotlib/matplotlib/issues/7156 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c429faeb409b3fc6e08d7a8e7e7ccf4977aa3424fd5fd724d0966f4426142fd0/matplotlib/matplotlib/issues/7156 |
| og:image:alt | In testing some stuff for #7151, I realized that the Cairo backend inverts images plotted using imshow. import matplotlib as mpl mpl.use('Cairo') import numpy as np import matplotlib.pyplot as plt ... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width