def shift(xshift=<NUM_LIT:0>, yshift=<NUM_LIT:0>, progressive=<NUM_LIT:0>, axes="<STR_LIT>"):
if axes=="<STR_LIT>": axes = _pylab.gca()<EOL>lines = axes.get_lines()<EOL>for m in range(<NUM_LIT:0>,len(lines)):<EOL><INDENT>if isinstance(lines[m], _mpl.lines.Line2D):<EOL><INDENT>xdata = _n.array(lines[m].get_xdata())<EOL>ydata = _n.array(lines[m].get_ydata())<EOL>if progressive:<EOL><INDENT>xdata += m*xshift<EOL>ydata += m*yshift<EOL><DEDENT>else:<EOL><INDENT>xdata += xshift<EOL>ydata += yshift<EOL><DEDENT>lines[m].set_data(xdata, ydata)<EOL><DEDENT><DEDENT>auto_zoom()<EOL>
This function adds an artificial offset to the lines.

yshift          amount to shift vertically
xshift          amount to shift horizontally
axes="gca"      axes to do this on, "gca" means "get current axes"
progressive=0   progressive means each line gets more offset
                set to 0 to shift EVERYTHING