优化 ssh 输入密码的部分

create_plot 函数中增加 close('all'),解决循环画图不销毁占用内存的问题
This commit is contained in:
2024-07-31 11:21:24 +08:00
parent 924fad09e0
commit 25fc43be81
5 changed files with 14 additions and 14 deletions

View File

@ -11,7 +11,7 @@ from data_process import brake, current, iso, wavelogger
from automatic_test import do_current, do_brake, btn_functions
from durable_action import factory_test
from commons import openapi, clibs
from matplotlib.pyplot import rcParams, figure, subplots_adjust
from matplotlib.pyplot import rcParams, figure, subplots_adjust, close
from matplotlib import use
from pandas import DataFrame, read_excel
import logging
@ -230,6 +230,7 @@ class App(customtkinter.CTk):
self.flg = 1
self.df_copy = df.copy()
self.old_curve = widgits_da['curvesel']['optionmenu'].get()
close('all')
_figure = figure(frameon=True, facecolor='#E9E9E9')
subplots_adjust(left=0.04, right=0.98, bottom=0.1, top=0.95)