From Jorge :
return fig to matplot.MaplotLibGraphs.main_layout()
return fig
matplot.MaplotLibGraphs.main_layout()