def fig(name, title=''): '''Create and return new Figure window with internal @name If @title is True, automatically set to @name (default no title) Set window title to @title if string. ''' fig_ = Figure(name).new() fig_.clear() if title is True: title = name if title: plt.title(title) return fig_