コード例 #1
0
    def callPlotFunctions(self,widget):

            Patrick.debug

            if self.dataTypesToPlot == "errors_automatically":

                    # get all files with "errors" at the beginning in the pathname folder
                    self.list_data_for_plot = []
                    self.list_data_for_plot = Patrick.getAllDatasetFileNames(pathname, "errors")
                    temp = "\\"
                    temp = Patrick.getDatasetPath(pathname) +temp

                    # add to all filenames the path
                    currentListElement = 0
                    while currentListElement < len(self.list_data_for_plot):
                            self.list_data_for_plot[currentListElement] = temp + self.list_data_for_plot[currentListElement]
                            if Patrick.debug:
                                    print "Debug MainWindow.callPlotFunctions: ", self.list_data_for_plot[currentListElement]
                            currentListElement+= 1

                    # debug output:
                    if Patrick.debug:
                            print "Debug MainWindow.callPlotFunctions: ", self.list_data_for_plot

                    #start plotting
                    Patrick.plotData(self.list_data_for_plot, self.entry_X.get_text(), self.entry_Y.get_text(), self.entry_Z.get_text(), self.entry_T.get_text(), self.plotmode, self.printInNewPlot)

            else:
                    Patrick.plotData(Patrick.datasetForPlot, self.entry_X.get_text(), self.entry_Y.get_text(), self.entry_Z.get_text(), self.entry_T.get_text(), self.plotmode, self.printInNewPlot)
コード例 #2
0
    def getDatasetTwoToPlot(self, widget):


                temp = r"\\"
                temp = Patrick.getDatasetPath(pathname) +temp
                Patrick.datasetForPlot[1] = temp + widget.get_active_text()
                self.label_status.set_text("%s chosen" % Patrick.datasetForPlot[1])

                if Patrick.debug:
                    print("Selected: %s " % Patrick.datasetForPlot[1])
コード例 #3
0
    def getDatasetOneToPlot(self, widget):

          if self.dataTypesToPlotLast != "errors_automatically":
                temp = r"\\"
                temp = Patrick.getDatasetPath(pathname) +temp
                Patrick.datasetForPlot[0] = temp + widget.get_active_text()
                self.label_status.set_text("%s chosen" % Patrick.datasetForPlot[0])

                if Patrick.debug:
                    print("Selected: %s " % Patrick.datasetForPlot[0])