Title: English title does not go well with gcf().tight_layout(), which yields bad image direction · Issue #8202 · matplotlib/matplotlib · GitHub
Open Graph Title: English title does not go well with gcf().tight_layout(), which yields bad image direction · Issue #8202 · matplotlib/matplotlib
X Title: English title does not go well with gcf().tight_layout(), which yields bad image direction · Issue #8202 · matplotlib/matplotlib
Description: I am using Python 3.4.4 |Anaconda 2.3.0 (64-bit) on win64 bits, with latest matplotlib and pyqt updated by conda install xx for the following code, if I use unicode title in the for-loop, the images are shown with their corretced directi...
Open Graph Description: I am using Python 3.4.4 |Anaconda 2.3.0 (64-bit) on win64 bits, with latest matplotlib and pyqt updated by conda install xx for the following code, if I use unicode title in the for-loop, the image...
X Description: I am using Python 3.4.4 |Anaconda 2.3.0 (64-bit) on win64 bits, with latest matplotlib and pyqt updated by conda install xx for the following code, if I use unicode title in the for-loop, the image...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"English title does not go well with gcf().tight_layout(), which yields bad image direction","articleBody":"I am using Python 3.4.4 |Anaconda 2.3.0 (64-bit) on win64 bits, with latest matplotlib and pyqt updated by conda install xx \r\nfor the following code, if I use unicode title in the for-loop, the images are shown with their corretced direction, i.e., the head is toward up like which is in original image. However, if I use English title, the images are upside-down: the people's head is toward earth\r\n\r\nThis can be observed for both TkAgg and Qt5Agg \r\n\r\n```python\r\n#coding=utf-8\r\nimport matplotlib\r\n#~ matplotlib.rcParams['backend'] = 'TkAgg'\r\nmatplotlib.rcParams['backend'] = 'Qt5Agg'\r\n\r\nfrom pylab import *\r\nimport PIL.Image as Image\r\n\r\nim=Image.open('Mario cosplay.jpg').convert('L')\r\n\r\norgsize=im.size\r\nnewsize=[int(i/4) for i in orgsize]\r\n\r\nsubplot(2,3,1)\r\nimshow(im, cmap='gray', vmin=0, vmax=255)\r\ntitle('original pic', fontsize=20);\r\n\r\nfilters=[Image.NEAREST, Image.BILINEAR, Image.BICUBIC, Image.ANTIALIAS]\r\nfiltersName=['NEAREST', 'BILINEAR', 'BICUBIC', 'ANTIALIAS']\r\nfor k in range(len(filters)):\r\n subplot(2,3,k+2)\r\n im1=im.resize(newsize, filters[k])\r\n imshow(im1, cmap='gray', vmin=0, vmax=255)\r\n title('原图的1/%i,插值法:%s' % (4, filtersName[k]), fontsize=20) # head up\r\n title('size: 1/%i,interpolation: %s' % (4, filtersName[k]), fontsize=20) # head down\r\n\r\ngcf().tight_layout()\r\n\r\nshow()\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/retsyo","@type":"Person","name":"retsyo"},"datePublished":"2017-03-06T04:42:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/8202/matplotlib/issues/8202"}
| 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:510a4415-40d7-f252-9ff7-06d4034f253e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98F2:8AFA:63BE86:875D7F:6A582CD8 |
| html-safe-nonce | b3fac5bcd632c4257342fa396d0d356b338d9cefb32079c3c327cd0668884e37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEYyOjhBRkE6NjNCRTg2Ojg3NUQ3Rjo2QTU4MkNEOCIsInZpc2l0b3JfaWQiOiI0ODk2MzQwOTMwNTc4NjIzNzA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b5eef2c9ea3f7e020668a70b48ffa43869054499af5909f2ef74a8b2bee79026 |
| hovercard-subject-tag | issue:212022876 |
| 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/8202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a34354eb90a234ef7adcc348ed8da57c776f97b4560a3274544ab805b4d9af2/matplotlib/matplotlib/issues/8202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a34354eb90a234ef7adcc348ed8da57c776f97b4560a3274544ab805b4d9af2/matplotlib/matplotlib/issues/8202 |
| og:image:alt | I am using Python 3.4.4 |Anaconda 2.3.0 (64-bit) on win64 bits, with latest matplotlib and pyqt updated by conda install xx for the following code, if I use unicode title in the for-loop, the image... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | retsyo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width