65d77bfdccc8b126f8e69d167df7d7713cf358fa,lib/matplotlib/backends/_backend_tk.py,_BackendTk,new_figure_manager_given_figure,#Any#Any#Any#,875

Before Change


            // Tkinter doesn"t allow colour icons on linux systems, but tk>=8.5
            // has a iconphoto command which we call directly. Source:
            // http://mail.python.org/pipermail/tkinter-discuss/2006-November/000954.html
            icon_fname = os.path.join(
                rcParams["datapath"], "images", "matplotlib.ppm")
            icon_img = tk.PhotoImage(file=icon_fname, master=window)
            try:
                window.iconphoto(False, icon_img)
            except Exception as exc:

After Change


            // Tkinter doesn"t allow colour icons on linux systems, but tk>=8.5
            // has a iconphoto command which we call directly. Source:
            // http://mail.python.org/pipermail/tkinter-discuss/2006-November/000954.html
            icon_fname = str(cbook._get_data_path("images/matplotlib.ppm"))
            icon_img = tk.PhotoImage(file=icon_fname, master=window)
            try:
                window.iconphoto(False, icon_img)
            except Exception as exc:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: matplotlib/matplotlib
Commit Name: 65d77bfdccc8b126f8e69d167df7d7713cf358fa
Time: 2019-05-22
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/_backend_tk.py
Class Name: _BackendTk
Method Name: new_figure_manager_given_figure


Project Name: matplotlib/matplotlib
Commit Name: 65d77bfdccc8b126f8e69d167df7d7713cf358fa
Time: 2019-05-22
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5.py
Class Name: NavigationToolbar2QT
Method Name: configure_subplots


Project Name: matplotlib/matplotlib
Commit Name: 65d77bfdccc8b126f8e69d167df7d7713cf358fa
Time: 2019-05-22
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5.py
Class Name: FigureManagerQT
Method Name: __init__