def setData(self):
        # update plot etc
        currdata = self.shifts[self.currpage-1]
        self.p1.setData(y=currdata['series'], x=self.xs)
        self.bestLineO.setValue(currdata['bestOverlap'])
        self.bestLineSh.setValue(currdata['bestShift'])
        self.labelCurrPage.setText("Page %s of %s" %(self.currpage, len(self.shifts)))
        self.rec1 = currdata['recorders'][0]
        self.rec2 = currdata['recorders'][1]
        self.labelRecs.setText("Suggested shift for recorder %s w.r.t. %s" % (self.rec1, self.rec2))
        i = self.parent.allrecs.index(self.rec1)
        j = self.parent.allrecs.index(self.rec2)
        result = self.parent.recConnections[i, j]==1
        self.connectCheckbox.setChecked(bool(result))