本文整理匯總了Python中Plotter.Plotter.plot_file方法的典型用法代碼示例。如果您正苦於以下問題:Python Plotter.plot_file方法的具體用法?Python Plotter.plot_file怎麽用?Python Plotter.plot_file使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plotter.Plotter
的用法示例。
在下文中一共展示了Plotter.plot_file方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: MeinDialog
# 需要導入模塊: from Plotter import Plotter [as 別名]
# 或者: from Plotter.Plotter import plot_file [as 別名]
#.........這裏部分代碼省略.........
self.HPEdit.setText(str(self.HP_slider.value()))
def hp(self):
print 'mav'
self.MAVEdit.setText(str(self.HP_slider.value()))
def mav_valuechanged(self):
self.MAVEdit.setText(str(self.MAV_slider.value()))
if self.InActiveFigure.isChecked():
fnum = self.Plotter.plot_eval(self.Plotter.mav, int(self.MAVEdit.text()), int(self.CurrentFigureEdit.text()), self.InActiveFigure.isChecked(), self.SelectedRange.isChecked(), self.SubtractMean_PB.isChecked())
self.CurrentFigureEdit.setText(str(fnum))
def plotcolumn(self):
for col in self.ColumnScroll.selectedItems():
key = str(col.text()).split('::')
col_data = self.Sets_Dict[key[0]][key[1]][key[2]]
x_axis = self.Sets_Dict[key[0]][key[1]]['Zeit']
label = str(col.text()+ '')
self.Plotter.plot_column(x_axis, col_data, int(self.CurrentFigureEdit.text()), label)
# def cut_zeros_filedict(self):
# print 'cut_zeros_filedict'
# if self.CutZeros.isChecked() == True:
# print 'checked'
# for fd in self.Files_Dict.keys():
# self.Files_Dict[fd] = self.datreader.cutzeros_file_dict(self.Files_Dict[fd])
def plotfile(self):
for f in self.FileScroll.selectedItems():
key = str(f.text()).split('::')
print key
title = str(f.text())
self.Plotter.plot_file(self.Sets_Dict[key[0]][key[1]], [ str(c).rstrip(' ').lstrip(' ') for c in self.ColsOfInterestEdit.text().split(',')], int(self.CurrentFigureEdit.text()), title)
def read_set(self):
print 'read_set'
filelist = list()
filelist = [f for f in os.listdir(self.directory) if f.startswith(self.lineEdit.text())]
print filelist
filelist = [os.path.join(self.directory, f) for f in filelist]
cols_of_interest = [str(c).rstrip(' ').lstrip(' ') for c in self.ColsOfInterestEdit.text().split(',')]
print cols_of_interest
self.Sets_Dict[str(self.lineEdit.text())] = self.datreader.read_files(filelist, cols_of_interest)
#self.cut_zeros_filedict()
self.update_SetScroll()
self.update_Files_Dict()
self.update_FileScroll()
self.update_Columns_Dict()
self.update_ColumnScroll()
print self.Sets_Dict.keys()
def update_ColumnScroll(self):
print 'update_ColumnScroll'
self.ColumnScroll.clear()
for col in self.Columns_Dict.keys():
item = QtGui.QListWidgetItem()
item.setText(col)
self.ColumnScroll.addItem(item)
def update_Columns_Dict(self):
print 'update_FilesDict'
cols_of_interest = [str(c).rstrip(' ').lstrip(' ') for c in self.ColsOfInterestEdit.text().split(',')]
for s in self.Sets_Dict.keys(): # sets