优化散点图绘制,添加坐标轴标签和零水平线
This commit is contained in:
@ -896,10 +896,16 @@ class MainWindow_approximately_align(QMainWindow):
|
|||||||
|
|
||||||
ax1 = self.fig.add_subplot(211)
|
ax1 = self.fig.add_subplot(211)
|
||||||
ax1.scatter(linspace(epoch_min, epoch_max, len(tho_bias_list)), tho_bias_list, alpha=0.2)
|
ax1.scatter(linspace(epoch_min, epoch_max, len(tho_bias_list)), tho_bias_list, alpha=0.2)
|
||||||
|
ax1.axhline(y=0, color='red', linestyle='--', alpha=0.3)
|
||||||
|
ax1.set_xlabel("Epoch")
|
||||||
|
ax1.set_ylabel("Tho Bias / s")
|
||||||
ax1.set_title("THO")
|
ax1.set_title("THO")
|
||||||
|
|
||||||
ax2 = self.fig.add_subplot(212)
|
ax2 = self.fig.add_subplot(212)
|
||||||
ax2.scatter(linspace(epoch_min, epoch_max, len(abd_bias_list)), abd_bias_list, alpha=0.2)
|
ax2.scatter(linspace(epoch_min, epoch_max, len(abd_bias_list)), abd_bias_list, alpha=0.2)
|
||||||
|
ax2.axhline(y=0, color='red', linestyle='--', alpha=0.3)
|
||||||
|
ax2.set_xlabel("Epoch")
|
||||||
|
ax2.set_ylabel("Abd Bias / s")
|
||||||
ax2.set_title("ABD")
|
ax2.set_title("ABD")
|
||||||
self.fig.canvas.draw()
|
self.fig.canvas.draw()
|
||||||
|
|
||||||
@ -922,8 +928,7 @@ class Data:
|
|||||||
self.processed_downsample_orgBcg = None
|
self.processed_downsample_orgBcg = None
|
||||||
self.processed_downsample_Tho = None
|
self.processed_downsample_Tho = None
|
||||||
self.processed_downsample_Abd = None
|
self.processed_downsample_Abd = None
|
||||||
self.relate_list = None
|
|
||||||
self.relate_point = None
|
|
||||||
|
|
||||||
def open_file(self):
|
def open_file(self):
|
||||||
if Path(Config["Path"]["Input_orgBcg"]).is_file():
|
if Path(Config["Path"]["Input_orgBcg"]).is_file():
|
||||||
|
|||||||
Reference in New Issue
Block a user