添加了<体动标注>的重采样
根据规范修改变量名称
This commit is contained in:
@ -494,7 +494,7 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax0.legend(loc=Constants.PLOT_UPPER_RIGHT)
|
||||
self.ax1.legend(loc=Constants.PLOT_UPPER_RIGHT)
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
elif sender == self.ui.pushButton_calculate_correlation and plot_element is not None and plot_element["mode"] == "init":
|
||||
self.gs = gridspec.GridSpec(2, 2, height_ratios=[1, 1], width_ratios=[1, 1])
|
||||
self.fig.subplots_adjust(top=0.88, bottom=0.05, right=0.98, left=0.05, hspace=0.15, wspace=0.15)
|
||||
@ -560,7 +560,7 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax3.legend(loc=Constants.PLOT_UPPER_RIGHT)
|
||||
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
elif sender == self.ui.pushButton_correlation_align or (plot_element is not None and plot_element["mode"] == "select"):
|
||||
self.gs = gridspec.GridSpec(1, 1, height_ratios=[1])
|
||||
self.fig.subplots_adjust(top=0.95, bottom=0.05, right=0.98, left=0.05, hspace=0, wspace=0)
|
||||
@ -581,7 +581,7 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax4.legend(loc=Constants.PLOT_UPPER_RIGHT)
|
||||
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
elif sender == self.ui.pushButton_view_align:
|
||||
self.gs = gridspec.GridSpec(1, 1, height_ratios=[1])
|
||||
self.fig.subplots_adjust(top=0.95, bottom=0.05, right=0.98, left=0.05, hspace=0, wspace=0)
|
||||
@ -598,10 +598,10 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax4.legend(loc=Constants.PLOT_UPPER_RIGHT)
|
||||
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
else:
|
||||
self.canvas.draw()
|
||||
return Result().failure(info=Constants.DRAWING_FAILURE)
|
||||
return Result().failure(info=Constants.DRAW_FAILURE)
|
||||
|
||||
def __update_info__(self):
|
||||
self.ui.spinBox_BCG_front_JJIV_1.setValue(Config["IV_Coordinate"]["BCG_front_1"])
|
||||
@ -945,7 +945,7 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
else:
|
||||
PublicFunc.text_output(self.ui, "(6/6)" + result.info, Constants.TIPS_TYPE_INFO)
|
||||
|
||||
PublicFunc.msgbox_output(self, Constants.SAVING_FINISHED, Constants.TIPS_TYPE_INFO)
|
||||
PublicFunc.msgbox_output(self, Constants.SAVE_FINISHED, Constants.TIPS_TYPE_INFO)
|
||||
PublicFunc.finish_operation(self, ButtonState)
|
||||
|
||||
def __update_coordinate__(self):
|
||||
@ -1086,9 +1086,9 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax2.set_ylim(self.ax2_ylime)
|
||||
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
|
||||
return Result().failure(info=Constants.DRAWING_FAILURE)
|
||||
return Result().failure(info=Constants.DRAW_FAILURE)
|
||||
|
||||
def redraw_correlation_align(self, plot_element=None):
|
||||
if plot_element is not None and plot_element["mode"] == "select":
|
||||
@ -1123,9 +1123,9 @@ class MainWindow_precisely_align(QMainWindow):
|
||||
self.ax4.set_ylim(self.ax4_ylime)
|
||||
|
||||
self.canvas.draw()
|
||||
return Result().success(info=Constants.DRAWING_FINISHED)
|
||||
return Result().success(info=Constants.DRAW_FINISHED)
|
||||
|
||||
return Result().failure(info=Constants.DRAWING_FAILURE)
|
||||
return Result().failure(info=Constants.DRAW_FAILURE)
|
||||
|
||||
def toggle_home(self):
|
||||
if self.ax0 is not None:
|
||||
|
||||
Reference in New Issue
Block a user