-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Why not get the same clear image on a high-resolution screen? #10235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
what version of Matplotlib, what backend, and what OS? |
@tacaswell Matplotlib: 2.1.1, Python: 3.6.4, OS: Windows 10 16299 Not only pictures, but also the toolbar is not clear. Can you tell the difference? The second picture is much cleaner, with dpi = 300 |
Can you try with qt5agg instead of tkagg? (add |
On master: tkagg is blurry. qt5agg is sharp (150%, 200% tested). Holds for icons and plot itself. |
Actually let's keep this open for discussing the Windows case because the solution is likely OS-specific... |
@timhoffm (or anyone else, for that matter) If you have a high-dpi screen available to testing on Windows, can you try calling one of https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiaware https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiawarenesscontext in tkagg.cpp? (e.g. at the top of PyInit__tkagg) |
@anntzer will do some time later this week. |
Support for HiDPI in TkAgg on Windows was added in #19167. |
My screen resolution is 2k, dpi zoom 200%
For example:
This is the picture displayed after running

And this is an image saved with dpi = 300

My point is that gui applications are not ideal for displaying on high-resolution screens.
The text was updated successfully, but these errors were encountered: