from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg