def new_figure_manager_given_figure(num, figure):
 canvas = FigureCanvasGDK(figure)
 manager = FigureManagerBase(canvas, num)
 return manager

def new_figure_manager_given_figure ( num , figure ) : canvas = FigureCanvasGDK ( figure ) manager = FigureManagerBase ( canvas , num ) return manager
create a new figure manager instance for the given figure .