def scale_x(scale, 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>line.set_xdata(_pylab.array(line.get_xdata())*scale)<EOL><DEDENT><DEDENT>title = axes.title.get_text()<EOL>title += "<STR_LIT>"+str(scale)<EOL>axes.title.set_text(title)<EOL>auto_zoom()<EOL>
This function scales lines horizontally.