gui/gui_mainLayout.py
def save_figure_as(self):
        """
        This function programs the button to save the figure displayed
        and save it in a png file where you want / with the name you want thanks to a file dialog.
        """
        self.file_name = QtGui.QFileDialog.getSaveFileName()
        self.file_name = self.file_name + ".png"
        self.ui.graphic_widget.canvas.print_figure(str(self.file_name))
def save_figure_as(self):
        """
        This function programs the button to save the figure displayed
        and save it in a png file where you want / with the name you want thanks to a file dialog.
        """
        self.file_name = QtGui.QFileDialog.getSaveFileName()
        self.file_name = self.file_name + ".png"
        self.ui.graphic_widget.canvas.print_figure(str(self.file_name))
This function programs the button to save the figure displayed
        and save it in a png file where you want / with the name you want thanks to a file dialog.