def image_format_figure(figure=None, draw=True):
_pylab.ioff()<EOL>if figure == None: figure = _pylab.gcf()<EOL>set_figure_window_geometry(figure, (<NUM_LIT:0>,<NUM_LIT:0>), (<NUM_LIT>,<NUM_LIT>))<EOL>axes = figure.axes[<NUM_LIT:0>]<EOL>axes.title.set_horizontalalignment('<STR_LIT:right>')<EOL>axes.title.set_size(<NUM_LIT:8>)<EOL>axes.title.set_position([<NUM_LIT>,<NUM_LIT>])<EOL>axes.title.set_visible(<NUM_LIT:1>)<EOL>if draw:<EOL><INDENT>_pylab.ion()<EOL>_pylab.draw()<EOL><DEDENT>
This formats the figure in a compact way with (hopefully) enough useful
information for printing large data sets. Used mostly for line and scatter
plots with long, information-filled titles.

Chances are somewhat slim this will be ideal for you but it very well might
and is at least a good starting point.

figure=None     specify a figure object. None will use gcf()