Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9edaed

Browse files
authored
Merge pull request #14849 from dstansby/tk-icon
ENH: Improve tkagg icon resolution
2 parents 6356962 + df8a790 commit c9edaed

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* text=auto
2+
*.ppm binary
23
*.svg binary
34
*.svg linguist-language=true
45
lib/matplotlib/_version.py export-subst

lib/matplotlib/backends/_backend_tk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ def new_figure_manager_given_figure(cls, num, figure):
880880
# icon. Tkinter doesn't allow colour icons on linux systems, but
881881
# tk>=8.5 has a iconphoto command which we call directly. See
882882
# http://mail.python.org/pipermail/tkinter-discuss/2006-November/000954.html
883-
icon_fname = str(cbook._get_data_path('images/matplotlib.ppm'))
883+
icon_fname = str(cbook._get_data_path(
884+
'images/matplotlib_128.ppm'))
884885
icon_img = tk.PhotoImage(file=icon_fname, master=window)
885886
try:
886887
window.iconphoto(False, icon_img)
-1.7 KB
Binary file not shown.

lib/matplotlib/mpl-data/images/matplotlib_128.ppm

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)