修改引用逻辑、新增Pattern更改界面、新增Calman灰阶界面
This commit is contained in:
@@ -5,8 +5,14 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_accuracy 原样搬迁
|
||||
|
||||
from matplotlib.patches import Rectangle
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
def plot_accuracy(self, accuracy_data, test_type):
|
||||
if TYPE_CHECKING:
|
||||
from pqAutomationApp import PQAutomationApp
|
||||
|
||||
|
||||
|
||||
def plot_accuracy(self: "PQAutomationApp", accuracy_data, test_type):
|
||||
"""绘制色准测试结果 - 29色显示 - 简洁版布局(显示 Gamma)"""
|
||||
|
||||
self.accuracy_ax.clear()
|
||||
@@ -319,3 +325,10 @@ def plot_accuracy(self, accuracy_data, test_type):
|
||||
|
||||
self.accuracy_canvas.draw()
|
||||
self.chart_notebook.select(self.accuracy_chart_frame)
|
||||
|
||||
|
||||
class PlotAccuracyMixin:
|
||||
"""由 tools/refactor_to_mixins.py 自动生成。
|
||||
把本模块的自由函数挂到 PQAutomationApp 上,便于 F12 跳转与类型推断。
|
||||
"""
|
||||
plot_accuracy = plot_accuracy
|
||||
|
||||
Reference in New Issue
Block a user