Commit 4097f3a0c5ac98690f098ac0074f11bb00df769e
1 parent
c0784227a8
Exists in
master
replace 4 spaces by tabs
Showing 2 changed files with 180 additions and 180 deletions Inline Diff
allanplot-gui.py
#!/usr/bin/python | 1 | 1 | #!/usr/bin/python | |
# -*- coding: utf-8 -*- | 2 | 2 | # -*- coding: utf-8 -*- | |
3 | 3 | |||
from PyQt4 import QtGui, QtCore | 4 | 4 | from PyQt4 import QtGui, QtCore | |
import sys, csv, numpy, allantools, pyqtgraph | 5 | 5 | import sys, csv, numpy, allantools, pyqtgraph | |
import allanplotUI | 6 | 6 | import allanplotUI | |
7 | 7 | |||
class allanplot(QtGui.QMainWindow, allanplotUI.Ui_MainWindow): | 8 | 8 | class allanplot(QtGui.QMainWindow, allanplotUI.Ui_MainWindow): | |
def __init__(self, parent=None): | 9 | 9 | def __init__(self, parent=None): | |
super(allanplot, self).__init__(parent) | 10 | 10 | super(allanplot, self).__init__(parent) | |
self.setupUi(self) | 11 | 11 | self.setupUi(self) | |
self.connectActions() | 12 | 12 | self.connectActions() | |
self.pqg_widget(self.frame) | 13 | 13 | self.pqg_widget(self.frame) | |
14 | 14 | |||
def pqg_widget(self, frame): | 15 | 15 | def pqg_widget(self, frame): | |
pyqtgraph.setConfigOption('background', 'w') | 16 | 16 | pyqtgraph.setConfigOption('background', 'w') | |
pyqtgraph.setConfigOption('foreground', 'k') | 17 | 17 | pyqtgraph.setConfigOption('foreground', 'k') | |
self.plot_widget = pyqtgraph.PlotWidget() | 18 | 18 | self.plot_widget = pyqtgraph.PlotWidget() | |
self.layout_pqg = QtGui.QVBoxLayout(frame) | 19 | 19 | self.layout_pqg = QtGui.QVBoxLayout(frame) | |
self.layout_pqg.addWidget(self.plot_widget) | 20 | 20 | self.layout_pqg.addWidget(self.plot_widget) | |
self.plot_widget.showGrid(True, True, 0.5) | 21 | 21 | self.plot_widget.showGrid(True, True, 0.5) | |
self.plot_widget.addLegend() | 22 | 22 | self.plot_widget.addLegend() | |
self.plot_widget.getViewBox().setMouseMode(pyqtgraph.ViewBox.RectMode) | 23 | 23 | self.plot_widget.getViewBox().setMouseMode(pyqtgraph.ViewBox.RectMode) | |
24 | 24 | |||
def connectActions(self): | 25 | 25 | def connectActions(self): | |
self.pushQuit.clicked.connect(QtGui.qApp.quit) | 26 | 26 | self.pushQuit.clicked.connect(QtGui.qApp.quit) | |
self.pushOpen.clicked.connect(self.openDat) | 27 | 27 | self.pushOpen.clicked.connect(self.openDat) | |
self.pushTimePlot.clicked.connect(self.timePlot) | 28 | 28 | self.pushTimePlot.clicked.connect(self.timePlot) | |
self.pushAdevPlot.clicked.connect(self.adevPlot) | 29 | 29 | self.pushAdevPlot.clicked.connect(self.adevPlot) | |
self.pushRelativeTimePlot.clicked.connect(self.relativeTimePlot) | 30 | 30 | self.pushRelativeTimePlot.clicked.connect(self.relativeTimePlot) | |
self.pushRelativeAdevPlot.clicked.connect(self.relativeAdevPlot) | 31 | 31 | self.pushRelativeAdevPlot.clicked.connect(self.relativeAdevPlot) | |
32 | 32 | |||
def openDat(self): | 33 | 33 | def openDat(self): | |
fileNames = QtGui.QFileDialog.getOpenFileNames(self, "Open datafile", QtCore.QDir.homePath(), "data files (*.dat)") | 34 | 34 | fileNames = QtGui.QFileDialog.getOpenFileNames(self, "Open datafile", QtCore.QDir.homePath(), "data files (*.dat)") | |
if fileNames: | 35 | 35 | if fileNames: | |
fileList = sorted([str(f) for f in fileNames]) | 36 | 36 | fileList = sorted([str(f) for f in fileNames]) | |
self.data = [] | 37 | 37 | self.data = [] | |
textList = '' | 38 | 38 | textList = '' | |
for f in fileList: | 39 | 39 | for f in fileList: | |
if textList=='': | 40 | 40 | if textList=='': | |
textList = str(f) | 41 | 41 | textList = str(f) | |
else: | 42 | 42 | else: | |
textList = textList+'\n'+str(f) | 43 | 43 | textList = textList+'\n'+str(f) | |
with open(f, 'r') as dest_f: | 44 | 44 | with open(f, 'r') as dest_f: | |
data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') | 45 | 45 | data_iter = csv.reader(dest_f, delimiter = '\t', quotechar = '"') | |
temp_data = [filter(None, value) for value in data_iter] | 46 | 46 | temp_data = [filter(None, value) for value in data_iter] | |
self.data.extend(temp_data) | 47 | 47 | self.data.extend(temp_data) | |
self.data = numpy.asarray(self.data, dtype = float) | 48 | 48 | self.data = numpy.asarray(self.data, dtype = float) | |
self.textFileList.setText(textList) | 49 | 49 | self.textFileList.setText(textList) | |
self.textValue.setText(str(self.data[:])) | 50 | 50 | self.textValue.setText(str(self.data[:])) | |
51 | 51 | |||
def timePlot(self): | 52 | 52 | def timePlot(self): | |
self.plot_widget.clear() | 53 | 53 | self.plot_widget.clear() | |
self.plot_widget.setTitle('time plot') | 54 | 54 | self.plot_widget.setTitle('time plot') | |
self.plot_widget.setLabel('bottom', "Time", "s") | 55 | 55 | self.plot_widget.setLabel('bottom', "Time", "s") | |
self.plot_widget.setLabel('left', "y") | 56 | 56 | self.plot_widget.setLabel('left', "y") | |
self.plot_widget.setLogMode(False, False) | 57 | 57 | self.plot_widget.setLogMode(False, False) | |
for i in range(2, self.data.shape[1]): | 58 | 58 | for i in range(2, self.data.shape[1]): | |
self.curve = self.plot_widget.plot() | 59 | 59 | self.curve = self.plot_widget.plot() | |
self.curve.setData(self.data[:,0], self.data[:,i], pen=5*i, name='#%s'%i) | 60 | 60 | self.curve.setData(self.data[:,0], self.data[:,i], pen=5*i, name='#%s'%i) | |
61 | 61 | |||
def relativeTimePlot(self): | 62 | 62 | def relativeTimePlot(self): | |
self.plot_widget.clear() | 63 | 63 | self.plot_widget.clear() | |
self.plot_widget.setTitle('relative time plot') | 64 | 64 | self.plot_widget.setTitle('relative time plot') | |
self.plot_widget.setLabel('bottom', "Time", "s") | 65 | 65 | self.plot_widget.setLabel('bottom', "Time", "s") | |
self.plot_widget.setLabel('left', "y") | 66 | 66 | self.plot_widget.setLabel('left', "y") | |
self.plot_widget.setLogMode(False, False) | 67 | 67 | self.plot_widget.setLogMode(False, False) | |
for i in range(2, self.data.shape[1]): | 68 | 68 | for i in range(2, self.data.shape[1]): | |
self.curve = self.plot_widget.plot() | 69 | 69 | self.curve = self.plot_widget.plot() | |
self.curve.setData(self.data[:,0], self.data[:,i]/self.data[:,i].mean(), pen=5*i, name='#%s'%i) | 70 | 70 | self.curve.setData(self.data[:,0], self.data[:,i]/self.data[:,i].mean(), pen=5*i, name='#%s'%i) | |
71 | 71 | |||
def adevPlot(self): | 72 | 72 | def adevPlot(self): | |
self.plot_widget.clear() | 73 | 73 | self.plot_widget.clear() | |
self.plot_widget.setTitle('adev plot') | 74 | 74 | self.plot_widget.setTitle('adev plot') | |
self.plot_widget.setLabel('bottom', "Tau", "s") | 75 | 75 | self.plot_widget.setLabel('bottom', "Tau", "s") | |
self.plot_widget.setLabel('left', "adev") | 76 | 76 | self.plot_widget.setLabel('left', "adev") | |
self.plot_widget.setLogMode(True, True) | 77 | 77 | self.plot_widget.setLogMode(True, True) | |
for i in range(2, self.data.shape[1]): | 78 | 78 | for i in range(2, self.data.shape[1]): | |
(tau2, ad, ade, adn) = allantools.adev(self.data[:,i], rate=1, data_type="freq", taus='decade') | 79 | 79 | (tau2, ad, ade, adn) = allantools.adev(self.data[:,i], rate=1, data_type="freq", taus='decade') | |
self.curve = self.plot_widget.plot() | 80 | 80 | self.curve = self.plot_widget.plot() | |
self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | 81 | 81 | self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
82 | 82 | |||
def relativeAdevPlot(self): | 83 | 83 | def relativeAdevPlot(self): | |
self.plot_widget.clear() | 84 | 84 | self.plot_widget.clear() | |
self.plot_widget.setTitle('relative adev plot') | 85 | 85 | self.plot_widget.setTitle('relative adev plot') | |
self.plot_widget.setLabel('bottom', "Tau", "s") | 86 | 86 | self.plot_widget.setLabel('bottom', "Tau", "s") | |
self.plot_widget.setLabel('left', "relative adev") | 87 | 87 | self.plot_widget.setLabel('left', "relative adev") | |
self.plot_widget.setLogMode(True, True) | 88 | 88 | self.plot_widget.setLogMode(True, True) | |
for i in range(2, self.data.shape[1]): | 89 | 89 | for i in range(2, self.data.shape[1]): | |
(tau2, ad, ade, adn) = allantools.adev(self.data[:,i]/self.data[:,i].mean(), rate=1, data_type="freq", taus='decade') | 90 | 90 | (tau2, ad, ade, adn) = allantools.adev(self.data[:,i]/self.data[:,i].mean(), rate=1, data_type="freq", taus='decade') | |
self.curve = self.plot_widget.plot() | 91 | 91 | self.curve = self.plot_widget.plot() | |
self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | 92 | 92 | self.curve.setData(tau2, ad, pen=5*i, name='#%s'%i) | |
93 | 93 | |||
def main(self): | 94 | 94 | def main(self): | |
self.show() | 95 | 95 | self.show() | |
96 | 96 | |||
if __name__=='__main__': | 97 | 97 | if __name__=='__main__': | |
app = QtGui.QApplication(sys.argv) | 98 | 98 | app = QtGui.QApplication(sys.argv) | |
allanplot = allanplot() | 99 | 99 | allanplot = allanplot() | |
allanplot.main() | 100 | 100 | allanplot.main() | |
app.exec_() | 101 | 101 | app.exec_() | |
102 | 102 | |||
allanplotUI.py
# -*- coding: utf-8 -*- | 1 | 1 | # -*- coding: utf-8 -*- | |
2 | 2 | |||
# Form implementation generated from reading ui file 'allanplotUI.ui' | 3 | 3 | # Form implementation generated from reading ui file 'allanplotUI.ui' | |
# | 4 | 4 | # | |
# Created: Thu Jul 7 17:46:05 2016 | 5 | 5 | # Created: Thu Jul 7 17:46:05 2016 | |
# by: PyQt4 UI code generator 4.11.2 | 6 | 6 | # by: PyQt4 UI code generator 4.11.2 | |
# | 7 | 7 | # | |
# WARNING! All changes made in this file will be lost! | 8 | 8 | # WARNING! All changes made in this file will be lost! | |
9 | 9 | |||
from PyQt4 import QtCore, QtGui | 10 | 10 | from PyQt4 import QtCore, QtGui | |
11 | 11 | |||
try: | 12 | 12 | try: | |
_fromUtf8 = QtCore.QString.fromUtf8 | 13 | 13 | _fromUtf8 = QtCore.QString.fromUtf8 | |
except AttributeError: | 14 | 14 | except AttributeError: | |
def _fromUtf8(s): | 15 | 15 | def _fromUtf8(s): | |
return s | 16 | 16 | return s | |
17 | 17 | |||
try: | 18 | 18 | try: | |
_encoding = QtGui.QApplication.UnicodeUTF8 | 19 | 19 | _encoding = QtGui.QApplication.UnicodeUTF8 | |
def _translate(context, text, disambig): | 20 | 20 | def _translate(context, text, disambig): | |
return QtGui.QApplication.translate(context, text, disambig, _encoding) | 21 | 21 | return QtGui.QApplication.translate(context, text, disambig, _encoding) | |
except AttributeError: | 22 | 22 | except AttributeError: | |
def _translate(context, text, disambig): | 23 | 23 | def _translate(context, text, disambig): | |
return QtGui.QApplication.translate(context, text, disambig) | 24 | 24 | return QtGui.QApplication.translate(context, text, disambig) | |
25 | 25 | |||
class Ui_MainWindow(object): | 26 | 26 | class Ui_MainWindow(object): | |
def setupUi(self, MainWindow): | 27 | 27 | def setupUi(self, MainWindow): | |
MainWindow.setObjectName(_fromUtf8("MainWindow")) | 28 | 28 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
MainWindow.resize(766, 780) | 29 | 29 | MainWindow.resize(766, 780) | |
self.centralwidget = QtGui.QWidget(MainWindow) | 30 | 30 | self.centralwidget = QtGui.QWidget(MainWindow) | |
self.centralwidget.setObjectName(_fromUtf8("centralwidget")) | 31 | 31 | self.centralwidget.setObjectName(_fromUtf8("centralwidget")) | |
self.gridLayout = QtGui.QGridLayout(self.centralwidget) | 32 | 32 | self.gridLayout = QtGui.QGridLayout(self.centralwidget) | |
self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | 33 | 33 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |
self.pushOpen = QtGui.QPushButton(self.centralwidget) | 34 | 34 | self.pushOpen = QtGui.QPushButton(self.centralwidget) | |
self.pushOpen.setObjectName(_fromUtf8("pushOpen")) | 35 | 35 | self.pushOpen.setObjectName(_fromUtf8("pushOpen")) | |
self.gridLayout.addWidget(self.pushOpen, 1, 1, 1, 1) | 36 | 36 | self.gridLayout.addWidget(self.pushOpen, 1, 1, 1, 1) | |
self.groupBox = QtGui.QGroupBox(self.centralwidget) | 37 | 37 | self.groupBox = QtGui.QGroupBox(self.centralwidget) | |
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) | 38 | 38 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) | |
sizePolicy.setHorizontalStretch(0) | 39 | 39 | sizePolicy.setHorizontalStretch(0) | |
sizePolicy.setVerticalStretch(0) | 40 | 40 | sizePolicy.setVerticalStretch(0) | |
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) | 41 | 41 | sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) | |
self.groupBox.setSizePolicy(sizePolicy) | 42 | 42 | self.groupBox.setSizePolicy(sizePolicy) | |
self.groupBox.setObjectName(_fromUtf8("groupBox")) | 43 | 43 | self.groupBox.setObjectName(_fromUtf8("groupBox")) | |
self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) | 44 | 44 | self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) | |
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) | 45 | 45 | self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) | |
self.pushTimePlot = QtGui.QPushButton(self.groupBox) | 46 | 46 | self.pushTimePlot = QtGui.QPushButton(self.groupBox) | |
self.pushTimePlot.setObjectName(_fromUtf8("pushTimePlot")) | 47 | 47 | self.pushTimePlot.setObjectName(_fromUtf8("pushTimePlot")) | |
self.verticalLayout_2.addWidget(self.pushTimePlot) | 48 | 48 | self.verticalLayout_2.addWidget(self.pushTimePlot) | |
self.pushRelativeTimePlot = QtGui.QPushButton(self.groupBox) | 49 | 49 | self.pushRelativeTimePlot = QtGui.QPushButton(self.groupBox) | |
self.pushRelativeTimePlot.setObjectName(_fromUtf8("pushRelativeTimePlot")) | 50 | 50 | self.pushRelativeTimePlot.setObjectName(_fromUtf8("pushRelativeTimePlot")) | |
self.verticalLayout_2.addWidget(self.pushRelativeTimePlot) | 51 | 51 | self.verticalLayout_2.addWidget(self.pushRelativeTimePlot) | |
self.pushAdevPlot = QtGui.QPushButton(self.groupBox) | 52 | 52 | self.pushAdevPlot = QtGui.QPushButton(self.groupBox) | |
self.pushAdevPlot.setObjectName(_fromUtf8("pushAdevPlot")) | 53 | 53 | self.pushAdevPlot.setObjectName(_fromUtf8("pushAdevPlot")) | |
self.verticalLayout_2.addWidget(self.pushAdevPlot) | 54 | 54 | self.verticalLayout_2.addWidget(self.pushAdevPlot) | |
self.pushRelativeAdevPlot = QtGui.QPushButton(self.groupBox) | 55 | 55 | self.pushRelativeAdevPlot = QtGui.QPushButton(self.groupBox) | |
self.pushRelativeAdevPlot.setObjectName(_fromUtf8("pushRelativeAdevPlot")) | 56 | 56 | self.pushRelativeAdevPlot.setObjectName(_fromUtf8("pushRelativeAdevPlot")) | |
self.verticalLayout_2.addWidget(self.pushRelativeAdevPlot) | 57 | 57 | self.verticalLayout_2.addWidget(self.pushRelativeAdevPlot) | |
self.gridLayout.addWidget(self.groupBox, 4, 1, 1, 1) | 58 | 58 | self.gridLayout.addWidget(self.groupBox, 4, 1, 1, 1) | |
self.textValue = QtGui.QTextBrowser(self.centralwidget) | 59 | 59 | self.textValue = QtGui.QTextBrowser(self.centralwidget) | |
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) | 60 | 60 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) | |
sizePolicy.setHorizontalStretch(0) | 61 | 61 | sizePolicy.setHorizontalStretch(0) | |
sizePolicy.setVerticalStretch(0) | 62 | 62 | sizePolicy.setVerticalStretch(0) | |
sizePolicy.setHeightForWidth(self.textValue.sizePolicy().hasHeightForWidth()) | 63 | 63 | sizePolicy.setHeightForWidth(self.textValue.sizePolicy().hasHeightForWidth()) | |
self.textValue.setSizePolicy(sizePolicy) | 64 | 64 | self.textValue.setSizePolicy(sizePolicy) | |
self.textValue.setMinimumSize(QtCore.QSize(600, 150)) | 65 | 65 | self.textValue.setMinimumSize(QtCore.QSize(600, 150)) | |
self.textValue.setMaximumSize(QtCore.QSize(16777215, 150)) | 66 | 66 | self.textValue.setMaximumSize(QtCore.QSize(16777215, 150)) | |
self.textValue.setObjectName(_fromUtf8("textValue")) | 67 | 67 | self.textValue.setObjectName(_fromUtf8("textValue")) | |
self.gridLayout.addWidget(self.textValue, 4, 2, 1, 1) | 68 | 68 | self.gridLayout.addWidget(self.textValue, 4, 2, 1, 1) | |
self.pushQuit = QtGui.QPushButton(self.centralwidget) | 69 | 69 | self.pushQuit = QtGui.QPushButton(self.centralwidget) | |
self.pushQuit.setObjectName(_fromUtf8("pushQuit")) | 70 | 70 | self.pushQuit.setObjectName(_fromUtf8("pushQuit")) | |
self.gridLayout.addWidget(self.pushQuit, 2, 1, 1, 1) | 71 | 71 | self.gridLayout.addWidget(self.pushQuit, 2, 1, 1, 1) | |
self.textFileList = QtGui.QTextBrowser(self.centralwidget) | 72 | 72 | self.textFileList = QtGui.QTextBrowser(self.centralwidget) | |
self.textFileList.setEnabled(True) | 73 | 73 | self.textFileList.setEnabled(True) | |
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum) | 74 | 74 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum) | |
sizePolicy.setHorizontalStretch(0) | 75 | 75 | sizePolicy.setHorizontalStretch(0) | |
sizePolicy.setVerticalStretch(0) | 76 | 76 | sizePolicy.setVerticalStretch(0) | |
sizePolicy.setHeightForWidth(self.textFileList.sizePolicy().hasHeightForWidth()) | 77 | 77 | sizePolicy.setHeightForWidth(self.textFileList.sizePolicy().hasHeightForWidth()) | |
self.textFileList.setSizePolicy(sizePolicy) | 78 | 78 | self.textFileList.setSizePolicy(sizePolicy) | |
self.textFileList.setMinimumSize(QtCore.QSize(600, 100)) | 79 | 79 | self.textFileList.setMinimumSize(QtCore.QSize(600, 100)) | |
self.textFileList.setMaximumSize(QtCore.QSize(16777215, 100)) | 80 | 80 | self.textFileList.setMaximumSize(QtCore.QSize(16777215, 100)) | |
self.textFileList.setObjectName(_fromUtf8("textFileList")) | 81 | 81 | self.textFileList.setObjectName(_fromUtf8("textFileList")) | |
self.gridLayout.addWidget(self.textFileList, 1, 2, 3, 1) | 82 | 82 | self.gridLayout.addWidget(self.textFileList, 1, 2, 3, 1) | |
self.frame = QtGui.QFrame(self.centralwidget) | 83 | 83 | self.frame = QtGui.QFrame(self.centralwidget) | |
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) | 84 | 84 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) | |
sizePolicy.setHorizontalStretch(0) | 85 | 85 | sizePolicy.setHorizontalStretch(0) | |
sizePolicy.setVerticalStretch(0) | 86 | 86 | sizePolicy.setVerticalStretch(0) | |
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) | 87 | 87 | sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) | |
self.frame.setSizePolicy(sizePolicy) | 88 | 88 | self.frame.setSizePolicy(sizePolicy) | |
self.frame.setMinimumSize(QtCore.QSize(700, 500)) | 89 | 89 | self.frame.setMinimumSize(QtCore.QSize(700, 500)) | |
self.frame.setObjectName(_fromUtf8("frame")) | 90 | 90 | self.frame.setObjectName(_fromUtf8("frame")) | |
self.gridLayout.addWidget(self.frame, 5, 1, 1, 2) | 91 | 91 | self.gridLayout.addWidget(self.frame, 5, 1, 1, 2) | |
MainWindow.setCentralWidget(self.centralwidget) | 92 | 92 | MainWindow.setCentralWidget(self.centralwidget) | |
self.actionOpen = QtGui.QAction(MainWindow) | 93 | 93 | self.actionOpen = QtGui.QAction(MainWindow) | |
self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | 94 | 94 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |
self.actionPlot = QtGui.QAction(MainWindow) | 95 | 95 | self.actionPlot = QtGui.QAction(MainWindow) | |
self.actionPlot.setObjectName(_fromUtf8("actionPlot")) | 96 | 96 | self.actionPlot.setObjectName(_fromUtf8("actionPlot")) | |
self.actionQuit = QtGui.QAction(MainWindow) | 97 | 97 | self.actionQuit = QtGui.QAction(MainWindow) | |
self.actionQuit.setObjectName(_fromUtf8("actionQuit")) | 98 | 98 | self.actionQuit.setObjectName(_fromUtf8("actionQuit")) | |
99 | 99 | |||
self.retranslateUi(MainWindow) | 100 | 100 | self.retranslateUi(MainWindow) | |
QtCore.QMetaObject.connectSlotsByName(MainWindow) | 101 | 101 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
102 | 102 | |||
def retranslateUi(self, MainWindow): | 103 | 103 | def retranslateUi(self, MainWindow): | |
MainWindow.setWindowTitle(_translate("MainWindow", "allanplot-gui", None)) | 104 | 104 | MainWindow.setWindowTitle(_translate("MainWindow", "allanplot-gui", None)) | |
self.pushOpen.setText(_translate("MainWindow", "Open", None)) | 105 | 105 | self.pushOpen.setText(_translate("MainWindow", "Open", None)) | |
self.groupBox.setTitle(_translate("MainWindow", "Plotting tools", None)) | 106 | 106 | self.groupBox.setTitle(_translate("MainWindow", "Plotting tools", None)) | |
self.pushTimePlot.setText(_translate("MainWindow", "Time Plot", None)) | 107 | 107 | self.pushTimePlot.setText(_translate("MainWindow", "Time Plot", None)) | |
self.pushRelativeTimePlot.setText(_translate("MainWindow", "Relative Time Plot", None)) | 108 | 108 | self.pushRelativeTimePlot.setText(_translate("MainWindow", "Relative Time Plot", None)) | |
self.pushAdevPlot.setText(_translate("MainWindow", "Adev Plot", None)) | 109 | 109 | self.pushAdevPlot.setText(_translate("MainWindow", "Adev Plot", None)) | |
self.pushRelativeAdevPlot.setText(_translate("MainWindow", "Relative Adev Plot", None)) | 110 | 110 | self.pushRelativeAdevPlot.setText(_translate("MainWindow", "Relative Adev Plot", None)) | |
self.textValue.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | 111 | 111 | self.textValue.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | 112 | 112 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |
"p, li { white-space: pre-wrap; }\n" | 113 | 113 | "p, li { white-space: pre-wrap; }\n" | |
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" | 114 | 114 | "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" | |
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None)) | 115 | 115 | "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None)) | |
self.pushQuit.setText(_translate("MainWindow", "Quit", None)) | 116 | 116 | self.pushQuit.setText(_translate("MainWindow", "Quit", None)) | |
self.textFileList.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | 117 | 117 | self.textFileList.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | 118 | 118 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |
"p, li { white-space: pre-wrap; }\n" | 119 | 119 | "p, li { white-space: pre-wrap; }\n" | |
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" | 120 | 120 | "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n" | |
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">.dat files</p></body></html>", None)) | 121 | 121 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">.dat files</p></body></html>", None)) | |
self.actionOpen.setText(_translate("MainWindow", "Open", None)) | 122 | 122 | self.actionOpen.setText(_translate("MainWindow", "Open", None)) | |
self.actionPlot.setText(_translate("MainWindow", "Plot", None)) | 123 | 123 | self.actionPlot.setText(_translate("MainWindow", "Plot", None)) | |
self.actionQuit.setText(_translate("MainWindow", "Quit", None)) | 124 | 124 | self.actionQuit.setText(_translate("MainWindow", "Quit", None)) | |
125 | 125 | |||
126 | 126 | |||