Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add retina screen support for TkAgg backend #10388

Open
Labels
@evgenyneu

Description

@evgenyneu

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 the plots into a tkinter GUI app.

matplotlib plots: tkagg vs osx

Code for reproduction

importmatplotlibmatplotlib.use('TkAgg')# Remove this to compare with MacOSX backendimportmatplotlib.pyplotaspltf=plt.figure(figsize=(6,4))a=f.add_subplot(111)a.plot([1,2,3,4])plt.show()

Actual outcome

The plots and toolbar look blurry on "TkAgg" backend.

Expected outcome

The plots and toolbar look sharp, just like on "MaxOSX" backend.

Matplotlib version

  • Operating system: MacOS 10.13.2
  • Matplotlib version: 2.1.2
  • tkinter.TkVersion: 8.5
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.6.4

I've installed python fromhttps://www.python.org/downloads/mac-osx/, clicking on Download menu and selecting Python 3.6.4 for MacOS.

If 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp