gui/gui_mainLayout.py
def display_the_graphic(self, num_line, wavelength, data_wanted, information):
        """
        This function calls the class "MplCanvas" of "gui_matplotlibwidgetFile.py" to plot results.
        Inputs : num_line : The number of cases.
                 wavelength : The wavelengths.
                 data_wanted : The data for wavelengths.
                 information : The array which contains the information, of all curves to display.
        """
        self.nb_case = num_line - 1  # This is the number of line, the number of test.

        self.graphic_slider(self.nb_case)

        self.mpl_canvas.update_fields(wavelength, data_wanted, self.slider_value)

        # Following if the checkbox is checked "All curves" or not.
        if self.ui.show_grid.checkState() == 2:
            grid = True
        else:
            grid = False

        if self.ui.show_all_curves.checkState() == 2:
            self.flag_curves = True
            self.mpl_canvas.display_graphic(self.flag_curves, self.ui, grid)
            self.print_graphic_information(self.slider_value, information)
        else:
            self.flag_curves = False
            self.mpl_canvas.display_graphic(self.flag_curves, self.ui, grid)
            self.print_graphic_information(self.slider_value, information)
def display_the_graphic(self, num_line, wavelength, data_wanted, information):
        """
        This function calls the class "MplCanvas" of "gui_matplotlibwidgetFile.py" to plot results.
        Inputs : num_line : The number of cases.
                 wavelength : The wavelengths.
                 data_wanted : The data for wavelengths.
                 information : The array which contains the information, of all curves to display.
        """
        self.nb_case = num_line - 1  # This is the number of line, the number of test.

        self.graphic_slider(self.nb_case)

        self.mpl_canvas.update_fields(wavelength, data_wanted, self.slider_value)

        # Following if the checkbox is checked "All curves" or not.
        if self.ui.show_grid.checkState() == 2:
            grid = True
        else:
            grid = False

        if self.ui.show_all_curves.checkState() == 2:
            self.flag_curves = True
            self.mpl_canvas.display_graphic(self.flag_curves, self.ui, grid)
            self.print_graphic_information(self.slider_value, information)
        else:
            self.flag_curves = False
            self.mpl_canvas.display_graphic(self.flag_curves, self.ui, grid)
            self.print_graphic_information(self.slider_value, information)
This function calls the class "MplCanvas" of "gui_matplotlibwidgetFile.py" to plot results.
        Inputs : num_line : The number of cases.
                 wavelength : The wavelengths.
                 data_wanted : The data for wavelengths.
                 information : The array which contains the information, of all curves to display.