def tile():
figs = plt.get_fignums()<EOL>x       = <NUM_LIT:0><EOL>y       = <NUM_LIT:0><EOL>toppad  = <NUM_LIT><EOL>size = np.array([<NUM_LIT:0>, <NUM_LIT:0>])<EOL>if ( len(figs) != <NUM_LIT:0> ):<EOL><INDENT>fig     = plt.figure(figs[<NUM_LIT:0>])<EOL>screen  = fig.canvas.window.get_screen()<EOL>screenx = screen.get_monitor_geometry(screen.get_primary_monitor())<EOL>screenx = screenx[<NUM_LIT:2>]<EOL>fig = plt.figure(figs[<NUM_LIT:0>])<EOL>fig.canvas.manager.window.move(x, y)<EOL>maxy = np.array(fig.canvas.manager.window.get_position())[<NUM_LIT:1>]<EOL>size = np.array(fig.canvas.manager.window.get_size())<EOL>y    = maxy<EOL>x += size[<NUM_LIT:0>]+<NUM_LIT:1><EOL>for fig in figs[<NUM_LIT:1>:]:<EOL><INDENT>fig  = plt.figure(fig)<EOL>size = np.array(fig.canvas.manager.window.get_size())<EOL>if ( x+size[<NUM_LIT:0>] > screenx ):<EOL><INDENT>x    = <NUM_LIT:0><EOL>y    = maxy<EOL>maxy = y+size[<NUM_LIT:1>]+toppad<EOL><DEDENT>else:<EOL><INDENT>maxy = max(maxy, y+size[<NUM_LIT:1>]+toppad)<EOL><DEDENT>fig.canvas.manager.window.move(x, y)<EOL>x += size[<NUM_LIT:0>] + <NUM_LIT:1><EOL><DEDENT><DEDENT>
Tiles open figures.