def coarsen_all_traces(level=<NUM_LIT:2>, exponential=False, axes="<STR_LIT:all>", figure=None):
if axes=="<STR_LIT>": axes=_pylab.gca()<EOL>if axes=="<STR_LIT:all>":<EOL><INDENT>if not figure: f = _pylab.gcf()<EOL>axes = f.axes<EOL><DEDENT>if not _fun.is_iterable(axes): axes = [axes]<EOL>for a in axes:<EOL><INDENT>lines = a.get_lines()<EOL>for line in lines:<EOL><INDENT>if isinstance(line, _mpl.lines.Line2D):<EOL><INDENT>coarsen_line(line, level, exponential, draw=False)<EOL><DEDENT><DEDENT><DEDENT>_pylab.draw()<EOL>
This function does nearest-neighbor coarsening of the data. See 
spinmob.fun.coarsen_data for more information.

Parameters
----------
level=2
    How strongly to coarsen.
exponential=False
    If True, use the exponential method (great for log-x plots).
axes="all"
    Which axes to coarsen.
figure=None
    Which figure to use.