###### 问题遇到的现象和发生背景
关与python可视化将plt读取的图片plt.savefig保存,Image.open图片之后的使用
###### 问题相关代码,请勿粘贴截图
def start():
frame3 = Frame(root)
img = Image.open('testfig.png') # 打开图片
photo = ImageTk.PhotoImage(img) # 用PIL模块的PhotoImage打开
label=Label(frame3, image=photo)
label.grid(row=1, column=0)
frame3.grid(pady=10)
###### 运行结果及报错内容
_tkinter.TclError: image "<PIL.PngImagePlugin.PngImageFile image mode=RGBA size=640x480 at 0x226875DE0E0>" doesn't exist
###### 我的解答思路和尝试过的方法
```python
im = Image.open(pathToImage)
ph = ImageTk.PhotoImage(im)
label = Label(window, image=ph)
label.image=ph #need to keep the reference of your image to avoid garbage collection
```
###### 我想要达到的结果
图片使用在可视化界面上成功