def make_inset(figure="<STR_LIT>", width=<NUM_LIT:1>, height=<NUM_LIT:1>):
<EOL>if figure == "<STR_LIT>": figure = _pylab.gcf()<EOL>w = figure.canvas.GetParent()<EOL>w.SetSize([<NUM_LIT>,<NUM_LIT>])<EOL>figure.axes[<NUM_LIT:0>].get_frame().set_linewidth(<NUM_LIT>)<EOL>xticklines = figure.axes[<NUM_LIT:0>].get_xticklines()<EOL>yticklines = figure.axes[<NUM_LIT:0>].get_yticklines()<EOL>_pylab.setp(xticklines+yticklines, mew=<NUM_LIT>)<EOL>for l in xticklines: l.set_marker(_mpl.lines.TICKDOWN)<EOL>for l in yticklines: l.set_marker(_mpl.lines.TICKLEFT)<EOL>figure.axes[<NUM_LIT:0>].xaxis.tick_bottom()<EOL>figure.axes[<NUM_LIT:0>].yaxis.tick_left()<EOL>_pylab.xticks(fontsize=<NUM_LIT:20>, fontweight='<STR_LIT>', fontname='<STR_LIT>')<EOL>_pylab.yticks(fontsize=<NUM_LIT:20>, fontweight='<STR_LIT>', fontname='<STR_LIT>')<EOL>figure.axes[<NUM_LIT:0>].xaxis.set_ticklabels([])<EOL>figure.axes[<NUM_LIT:0>].yaxis.set_ticklabels([])<EOL>figure.axes[<NUM_LIT:0>].set_position([<NUM_LIT:0.1>,<NUM_LIT:0.1>,<NUM_LIT:0.1>+<NUM_LIT>*width,<NUM_LIT:0.1>+<NUM_LIT>*height])<EOL>figure.axes[<NUM_LIT:0>].set_title('<STR_LIT>')<EOL>figure.axes[<NUM_LIT:0>].set_xlabel('<STR_LIT>')<EOL>figure.axes[<NUM_LIT:0>].set_ylabel('<STR_LIT>')<EOL>figure.axes[<NUM_LIT:0>].legend=None<EOL>auto_zoom(figure.axes[<NUM_LIT:0>], <NUM_LIT>, <NUM_LIT>)<EOL>
This guy makes the figure thick and small, like an inset.
Currently assumes there is only one set of axes in the window!