def new_figure_manager(num, *args, **kwargs):
<EOL>DEBUG_MSG("<STR_LIT>", <NUM_LIT:3>, None)<EOL>_create_wx_app()<EOL>FigureClass = kwargs.pop('<STR_LIT>', Figure)<EOL>fig = FigureClass(*args, **kwargs)<EOL>frame = FigureFrameWx(num, fig)<EOL>figmgr = frame.get_figure_manager()<EOL>if matplotlib.is_interactive():<EOL><INDENT>figmgr.frame.Show()<EOL><DEDENT>return figmgr<EOL>
Create a new figure manager instance