def y_auto_rescale_event(self):
        if self.yaxis_type == 'RvsQ':
            [xmin_user, xmax_user
             ] = self._lrdata.all_plot_axis.reduced_plot_RQQ4userView_x
            [ymin_user,
             ymax_user] = self._lrdata.all_plot_axis.reduced_plot_RQuserView_y
            [xmin_auto, xmax_auto
             ] = self._lrdata.all_plot_axis.reduced_plot_RQQ4autoView_x
            [ymin_auto,
             ymax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQautoView_y
            self._lrdata.all_plot_axis.reduced_plot_RQuserView_y = [
                ymin_auto, ymax_auto
            ]
            [xmin, xmax, ymin,
             ymax] = [xmin_user, xmax_user, ymin_auto, ymax_auto]

            #self._lrdata.all_plot_axis.reduced_plot_RQQ4userView_x = [xmin_user, xmax_user]
            #[xmin_user, xmax_user, ymin_user, ymax_user] = self._lrdata.all_plot_axis.reduced_plot_RQuserView
            #[xmin_auto, xmax_auto, ymin_auto, ymax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQautoView
            #self._lrdata.all_plot_axis.reduced_plot_RQuserView = [xmin_user, xmax_user, ymin_auto, ymax_auto]

        else:
            [xmin_user, xmax_user
             ] = self._lrdata.all_plot_axis.reduced_plot_RQQ4userView_x
            [ymin_user,
             ymax_user] = self._lrdata.all_plot_axis.reduced_plot_RQ4userView_y
            [xmin_auto, xmax_auto
             ] = self._lrdata.all_plot_axis.reduced_plot_RQQ4autoView_x
            [ymin_auto,
             ymax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQ4autoView_y
            self._lrdata.all_plot_axis.reduced_plot_RQ4userView_y = [
                ymin_auto, ymax_auto
            ]
            [xmin, xmax, ymin,
             ymax] = [xmin_user, xmax_user, ymin_auto, ymax_auto]

            #[xmin_user, xmax_user, ymin_user, ymax_user] = self._lrdata.all_plot_axis.reduced_plot_RQ4QuserView
            #[xmin_auto, xmax_auto, ymin_auto, ymax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQ4QautoView
            #self._lrdata.all_plot_axis.reduced_plot_RQ4QuserView = [xmin_user, xmax_user, ymin_auto, ymax_auto]

        _ymin_str = "%.8f" % ymin
        _ymax_str = "%.8f" % ymax

        self.ui.y_min_value.setText(_ymin_str)
        self.ui.y_max_value.setText(_ymax_str)

        big_table_data = self.parent.big_table_data
        big_table_data[0, 0] = self._lrdata
        self.parent.big_table_data = big_table_data

        o_reduced_handler = ReducedDataHandler(parent=self.parent)
        o_reduced_handler.plot()
    def x_auto_rescale_event(self):
        #        [xmin_user, xmax_user] = self._lrdata.all_plot_axis.reduced_plot_RQQ4userView_x
        [xmin_auto,
         xmax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQQ4autoView_x
        self._lrdata.all_plot_axis.reduced_plot_RQQ4userView_x = [
            xmin_auto, xmax_auto
        ]

        #[xmin_user, xmax_user, ymin_user, ymax_user] = self._lrdata.all_plot_axis.reduced_plot_RQuserView
        #[xmin_auto, xmax_auto, ymin_auto, ymax_auto] = self._lrdata.all_plot_axis.reduced_plot_RQautoView
        #self._lrdata.all_plot_axis.reduced_plot_RQuserView = [xmin_auto, xmax_auto, ymin_user, ymax_user]

        big_table_data = self.parent.big_table_data
        big_table_data[0, 0] = self._lrdata
        self.parent.big_table_data = big_table_data

        o_reduced_handler = ReducedDataHandler(parent=self.parent)
        o_reduced_handler.plot()
Exemple #3
0
 def stitching_sf_radio_button(self):
     o_reduced_plot = ReducedDataHandler(parent = self)
     o_reduced_plot.plot()
Exemple #4
0
 def data_stitching_table_manual_spin_box(self):
     o_reduction = ReducedDataHandler(parent = self)
     o_reduction.save_manual_sf()
     self.stitching_sf_radio_button()
Exemple #5
0
 def retrieve_scaling_factor(self, row=-1):
     o_reduced_data_hanlder = ReducedDataHandler(parent=self.parent)
     big_table_data = self.parent.big_table_data
     _lconfig = big_table_data[row, 2]
     sf = o_reduced_data_hanlder.generate_selected_sf(lconfig=_lconfig)
     return str(sf)
	def retrieve_scaling_factor(self, row=-1):
		o_reduced_data_hanlder = ReducedDataHandler(parent = self.parent)
		big_table_data = self.parent.big_table_data
		_lconfig = big_table_data[row, 2]
		sf = o_reduced_data_hanlder.generate_selected_sf(lconfig = _lconfig)
		return str(sf)
Exemple #7
0
 def stitching_sf_radio_button(self):
     o_reduced_plot = ReducedDataHandler(parent=self)
     o_reduced_plot.plot()
Exemple #8
0
 def data_stitching_table_manual_spin_box(self):
     o_reduction = ReducedDataHandler(parent=self)
     o_reduction.save_manual_sf()
     self.stitching_sf_radio_button()
 def plot(self):
     o_reduced_handler = ReducedDataHandler(parent=self.parent)
     o_reduced_handler.plot()