def saveCurve(self):
    self.pendingSave = None
    for p in self.getSavePatches():
        self.graph.patch(p)
def saveCurve(self):
    self.pendingSave = None
    for p in self.getSavePatches():
        self.graph.patch(p)