def smooth_selected_trace(trim=True, 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>fatten_line(line)<EOL>ready = <NUM_LIT:0><EOL>while not ready:<EOL><INDENT>response = input("<STR_LIT>")<EOL>try:<EOL><INDENT>int(response)<EOL>ready=<NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>if response=="<STR_LIT:\n>": ready = <NUM_LIT:1><EOL>else:              print("<STR_LIT>")<EOL><DEDENT><DEDENT>if not response == "<STR_LIT:\n>":<EOL><INDENT>smooth_line(line, int(response), trim)<EOL><DEDENT>unfatten_line(line)<EOL><DEDENT><DEDENT>
This cycles through all the lines in a set of axes, highlighting them,
and asking for how much you want to smooth by (0 or <enter> is valid)