def setExpression(self, e):
        try:
            self.function = eval('lambda x: '+e)
        except:
            self.function = None
        self.repaint()
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/Graph.py/Graph.setExpression/original