From ec1ceef275b058c43ec47c011ac7dbc948bcf0b2 Mon Sep 17 00:00:00 2001 From: Zohar Babin Date: Fri, 7 Dec 2018 14:56:11 +0200 Subject: [PATCH] fix for variable name mistake (fig instead of plt) --- demo_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo_video.py b/demo_video.py index 45bb189..4e39983 100644 --- a/demo_video.py +++ b/demo_video.py @@ -19,7 +19,7 @@ def saveImages(Y, repInd, dir_output): for i in repInd: plt.imshow(np.reshape(Y[:,i],(240,320)), 'gray') plt.axis('off') - fig.savefig(dir_output + 'frame_' + str(i) +'.png') + plt.savefig(dir_output + 'frame_' + str(i) +'.png') def plot_sparsness(C):