initialized new widget and window for picking (work in progress)

This commit is contained in:
Sebastian Wehling-Benatelli 2015-03-01 10:33:13 +01:00
parent addb8ae815
commit b23c9d1104

View File

@ -70,6 +70,26 @@ class MPLWidget(FigureCanvas):
self.updateYLabel(ylabel) self.updateYLabel(ylabel)
self.updateTitle(title) self.updateTitle(title)
class multiComponentPlot(FigureCanvas):
def __init__(self, parent=None, noc=3, xlabel='x', ylabel='y', title='Title'):
super(multiComponentPlot, self).__init__(Figure())
self.setParent(parent)
self.figure = Figure()
self.canvas = FigureCanvas(self.figure)
self.axeslist = []
for n in range(noc):
nsub = '{0}1{1}'.format(noc, n)
if n >= 1:
self.axeslist.insert(n, self.figure.add_subplot(nsub, sharex=self.axeslist[0], sharey=self.axeslist[0]))
else:
self.axeslist.insert(n, self.figure.add_subplot(nsub))
class PickDlg(QDialog): class PickDlg(QDialog):
def __init__(self, station=None, parent=None): def __init__(self, station=None, parent=None):