如何使用交互式matplotlib方法保存图像

我正在使用matplotlib的交互式方法,但是我想将该图形保存为原始大小,在该方法内它会调用以下方法:

def compress_show_color_images_layer(img_name,k):
    """
     compress and display the reconstructed color image using the layer method 
    """
    image = color_images[img_name]
    original_shape = image.shape
    image_reconst_layers = [compress_svd(image[:,:,i],k)[0] for i in range(3)]
    image_reconst = np.zeros(image.shape)
    for i in range(3):
        image_reconst[:,:,i] = image_reconst_layers[i]

    compression_ratio =100.0*3* (k*(original_shape[0] + original_shape[1])+k)/(original_shape[0]*original_shape[1]*original_shape[2])
    plt.title("compression ratio={:.2f}".format(compression_ratio)+"%")

    plt.imshow(image_reconst)

我用这个显示图像:

interact(compress_show_color_images_layer,img_name=list(color_images.keys()),k=(1,550));

Any ideas of how to download an image using this method? K is the 'interactive' value.