def new_figure_manager(num, *args, **kwargs):
FigureClass = kwargs.pop('<STR_LIT>', Figure)<EOL>figure = FigureClass(*args, **kwargs)<EOL>window = Fltk.Fl_Double_Window(<NUM_LIT:10>,<NUM_LIT:10>,<NUM_LIT:30>,<NUM_LIT:30>)<EOL>canvas = FigureCanvasFltkAgg(figure)<EOL>window.end()<EOL>window.show()<EOL>window.make_current()<EOL>figManager = FigureManagerFltkAgg(canvas, num, window)<EOL>if matplotlib.is_interactive():<EOL><INDENT>figManager.show()<EOL><DEDENT>return figManager<EOL>
Create a new figure manager instance