def scale_y(scale, axes="<STR_LIT>", lines="<STR_LIT:all>"):
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>line.set_ydata(_pylab.array(line.get_ydata())*scale)<EOL><DEDENT><DEDENT>title = axes.title.get_text()<EOL>if not title == "<STR_LIT>":<EOL><INDENT>title += "<STR_LIT>"+str(scale)<EOL>axes.title.set_text(title)<EOL><DEDENT>auto_zoom()<EOL>
This function scales lines vertically.
You can specify a line index, such as lines=0 or lines=[1,2,4]