重构拆分plot图表

This commit is contained in:
xinzhu.yin
2026-04-20 10:16:31 +08:00
parent 77c92ffc05
commit 7d7d8949b9
8 changed files with 864 additions and 806 deletions

View File

@@ -315,4 +315,4 @@ def plot_accuracy(app, accuracy_data, test_type):
)
self.accuracy_canvas.draw()
self.chart_notebook.select(4)
self.chart_notebook.select(self.accuracy_chart_frame)

View File

@@ -320,6 +320,6 @@ def plot_cct(app, test_type):
)
self.cct_canvas.draw()
self.chart_notebook.select(2)
self.chart_notebook.select(self.cct_chart_frame)
self.log_gui.log("✓ xy 色度坐标图绘制完成")

View File

@@ -165,4 +165,4 @@ def plot_contrast(app, contrast_data, test_type):
)
self.contrast_canvas.draw()
self.chart_notebook.select(3)
self.chart_notebook.select(self.contrast_chart_frame)

View File

@@ -138,6 +138,6 @@ def plot_gamma(app, L_bar, results_with_gamma_list, target_gamma, test_type):
# ========== 4. 绘制到画布 ==========
self.gamma_canvas.draw()
self.chart_notebook.select(1)
self.chart_notebook.select(self.gamma_chart_frame)
self.log_gui.log("Gamma曲线 + 数据表格绘制完成")

View File

@@ -534,6 +534,6 @@ def plot_gamut(app, results, coverage, test_type):
)
self.gamut_canvas.draw()
self.chart_notebook.select(0)
self.chart_notebook.select(self.gamut_chart_frame)
self.log_gui.log("色域图绘制完成")