def line_math(fx=None, fy=None, axes='<STR_LIT>'):
if axes=='<STR_LIT>': axes = _pylab.gca()<EOL>lines = axes.get_lines()<EOL>for line in lines:<EOL><INDENT>if isinstance(line, _mpl.lines.Line2D):<EOL><INDENT>xdata, ydata = line.get_data()<EOL>if not fx==None: xdata = fx(xdata)<EOL>if not fy==None: ydata = fy(ydata)<EOL>line.set_data(xdata,ydata)<EOL><DEDENT><DEDENT>_pylab.draw()<EOL>
applies function fx to all xdata and fy to all ydata.