Ploting a numpy array as an image

Viewed 35

I have temperature vales as function of time at 34 different points forming an array of (200,34) shape. How can I represent the data in the array as an image. I search online but I did not find any useful solutions. Any help is appreciated.

1 Answers

You are probably interested in matplotlib's imshow function:

from matplotlib.pyplot import imshow
from numpy.random import uniform
image = uniform(size = (200, 32))
imshow(image, cmap='gray')
Related