From 5268d35d39416fe0fc96f2f7beb7409154ea9896 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling Date: Wed, 16 Jul 2014 12:06:05 +0200 Subject: [PATCH] modified: introduce data container class --- pylot/QtPyLoT.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pylot/QtPyLoT.py b/pylot/QtPyLoT.py index 2e4e9a30..6b3ad572 100755 --- a/pylot/QtPyLoT.py +++ b/pylot/QtPyLoT.py @@ -27,7 +27,8 @@ from PySide.QtCore import * from PySide.QtGui import * from obspy.core import (read, UTCDateTime) from pylot.core.util import _getVersionString -from pylot.core.read import FilterOptions +from pylot.core.read import (Data, + FilterOptions) from pylot.core.util import FILTERDEFAULTS from pylot.core.util import checkurl from pylot.core.util import (PickDlg, @@ -56,13 +57,18 @@ class MainWindow(QMainWindow): self.setupUi() def loadData(self): - pass + self.data = Data() def setupUi(self): self.setWindowIcon(QIcon("PyLoT.ico")) + xlab = 'time since {0}'.format() + # create central matplotlib figure widget - self.DataPlot = MPLWidget(parent=self) + self.DataPlot = MPLWidget(parent=self, + xlabel=xlab, + ylabel=ylab, + title=eventtitle) filterDockWidget = FilterOptionsDock(titleString="Filter Options", parent=self, @@ -83,9 +89,8 @@ class MainWindow(QMainWindow): maingrid.addLayout(dataLayout, 1, 0) maingrid.setCentralWidget(self.DataPlot) - def plotData(self, data): - if data is not None and isinstance(data, Stream): - pass + def plotData(self): + pass def updateFilterOptions(self): self.filteroptions = [self.filterOptionsP