def set_figure_window_geometry(fig='<STR_LIT>', position=None, size=None):
if type(fig)==str:          fig = _pylab.gcf()<EOL>elif _fun.is_a_number(fig): fig = _pylab.figure(fig)<EOL>if _pylab.get_backend().find('<STR_LIT>') >= <NUM_LIT:0>:<EOL><INDENT>w = fig.canvas.window()<EOL>if not size == None:<EOL><INDENT>w.resize(size[<NUM_LIT:0>],size[<NUM_LIT:1>])<EOL><DEDENT>if not position == None:<EOL><INDENT>w.move(position[<NUM_LIT:0>], position[<NUM_LIT:1>])<EOL><DEDENT><DEDENT>elif _pylab.get_backend().find('<STR_LIT>') >= <NUM_LIT:0>:<EOL><INDENT>w = fig.canvas.Parent<EOL>if not size == None:<EOL><INDENT>w.SetSize(size)<EOL><DEDENT>if not position == None:<EOL><INDENT>w.SetPosition(position)<EOL><DEDENT><DEDENT>
This will currently only work for Qt4Agg and WXAgg backends.

postion = [x, y]
size    = [width, height]

fig can be 'gcf', a number, or a figure object.