'Update graph and scale scroll regions.'

def updateScrollRegions(self):

    ofs = 20
    height = (self.gheight + ofs)
    self.graph.configure(scrollregion=(0, (- ofs), (self.xpos * self.barwidth), height))
    self.scale.configure(scrollregion=(0, (- ofs), 0, height))
