Answers for "display 2d numpy array as image"

1

display 2d numpy array as image

from matplotlib import pyplot as plt
plt.imshow(data, interpolation='nearest')
plt.show()
Posted by: Guest on October-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language