FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Why not get the same clear image on a high-resolution screen? · Issue #10235 · matplotlib/matplotlib · GitHub

Repository navigation

Why not get the same clear image on a high-resolution screen? #10235

Description

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.

Activity

  1. tacaswell commented on Jan 12, 2018

    Member

    what version of Matplotlib, what backend, and what OS?

  2. reaCodes commented on Jan 12, 2018

    Author

    @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

  3. anntzer commented on Jan 12, 2018

    Contributor

    Can you try with qt5agg instead of tkagg? (add import matplotlib; matplotlib.use("qt5agg") at the very top of your script; you may need to install pyqt5 from conda or pypi.)

  4. dstansby commented on Apr 21, 2019

    Member

    @reaCodes is this still an issue? Did you get a chance to try out @anntzer's suggestion?

  5. timhoffm commented on Nov 5, 2019

    Member

    On master: tkagg is blurry. qt5agg is sharp (150%, 200% tested). Holds for icons and plot itself.

  6. anntzer commented on Nov 6, 2019

    Contributor

    I think this is essentially a duplicate of #10388. Even though this issue was opened first I'll close it as there is more discussion on the other.
    Feel free to reopen if you think a separate issue is warranted.

    Actually let's keep this open for discussing the Windows case because the solution is likely OS-specific...

  7. anntzer commented on Nov 6, 2019

    Contributor

    @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)
    (also https://bugs.python.org/issue33656 suggests how to do this with ctypes)

  8. reopened this on Nov 6, 2019
  9. timhoffm commented on Nov 6, 2019

    Member

    @anntzer will do some time later this week.

  10. self-assigned this
    on Nov 6, 2019
  11. QuLogic commented on Jul 8, 2021

    Member

    Support for HiDPI in TkAgg on Windows was added in #19167.

  12. added this to the v3.5.0 milestone on Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL