def matplot_fig(): plt.figure() plt.plot([1, 2, 3, 4], 'ks-', mec='w', mew=5, ms=20) return plt.gcf()