In [0]:
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import cv2
from PIL import Image
import os

In [0]:
tmp = np.array(np.arange(100)/5 + np.random.randn(100),dtype='int8')
plt.imshow(tmp.reshape(10,10))
Image.fromarray(tmp.reshape(10,10)).save('tmp.png')



In [0]:
os.listdir()


Out[0]:
['sample_data', '.config', 'tmp.jpg', 'tmp.png']

In [0]: