Title: Add retina screen support for TkAgg backend · Issue #10388 · matplotlib/matplotlib · GitHub
Open Graph Title: Add retina screen support for TkAgg backend · Issue #10388 · matplotlib/matplotlib
X Title: Add retina screen support for TkAgg backend · Issue #10388 · matplotlib/matplotlib
Description: Bug report The plots done with "TkAgg" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default "MaxOSX" backend. It would be nice to have retina-friendly output for "TkAgg" since I'm using ...
Open Graph Description: Bug report The plots done with "TkAgg" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default "MaxOSX" backend. It would be nice to have retina-frie...
X Description: Bug report The plots done with "TkAgg" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default "MaxOSX" backend. It would be ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add retina screen support for TkAgg backend","articleBody":"### Bug report\r\n\r\nThe plots done with \"TkAgg\" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default \"MaxOSX\" backend. It would be nice to have retina-friendly output for \"TkAgg\" since I'm using the plots into a tkinter GUI app.\r\n\r\n\u003cimg width=\"449\" alt=\"matplotlib plots: tkagg vs osx\" src=\"https://user-images.githubusercontent.com/880411/35893090-7fe4f9f6-0c00-11e8-9dad-a9dac766b3c5.png\"\u003e\r\n\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('TkAgg') # Remove this to compare with MacOSX backend\r\nimport matplotlib.pyplot as plt\r\n\r\nf = plt.figure(figsize=(6, 4))\r\na = f.add_subplot(111)\r\na.plot([1,2,3,4])\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nThe plots and toolbar look blurry on \"TkAgg\" backend.\r\n\r\n**Expected outcome**\r\n\r\nThe plots and toolbar look sharp, just like on \"MaxOSX\" backend.\r\n\r\n**Matplotlib version**\r\n * Operating system: MacOS 10.13.2\r\n * Matplotlib version: 2.1.2\r\n * tkinter.TkVersion: 8.5\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg\r\n * Python version: 3.6.4\r\n\r\nI've installed python from https://www.python.org/downloads/mac-osx/, clicking on Download menu and selecting Python 3.6.4 for MacOS.\r\n\r\nIf I create a tkinter app, other elements like labels, menus are sharp as well, only the plot is blurry. This indicates that tkinter is capable of showing sharp graphics, the question is how to do it.","author":{"url":"https://github.com/evgenyneu","@type":"Person","name":"evgenyneu"},"datePublished":"2018-02-07T01:24:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":27},"url":"https://github.com/10388/matplotlib/issues/10388"}
| 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:85edf4e1-94fe-6cfa-80be-2f587cf6cccd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBF4:1B2073:10846CD:160E7FA:6A529B8C |
| html-safe-nonce | fb043d99c67f9b9779650bd71e74bec548066dca13add6dea0f54275683db56c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkY0OjFCMjA3MzoxMDg0NkNEOjE2MEU3RkE6NkE1MjlCOEMiLCJ2aXNpdG9yX2lkIjoiNjIyOTIzMzY1NTIyMDQ0NDA0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | facfbedc70be3c2367a26eb4d43602e7ed3c3b1e2396bd32f52d0f16632f9fbe |
| hovercard-subject-tag | issue:294973470 |
| 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/10388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be8094e33a2a8c07e4f56d1f229f293e3dae76fc5b399e130e36ac454a6f422a/matplotlib/matplotlib/issues/10388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be8094e33a2a8c07e4f56d1f229f293e3dae76fc5b399e130e36ac454a6f422a/matplotlib/matplotlib/issues/10388 |
| og:image:alt | Bug report The plots done with "TkAgg" backend look blurry on retina screen of my Mac Book Pro. The plots look good when I'm using the default "MaxOSX" backend. It would be nice to have retina-frie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | evgenyneu |
| 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