Skip to content

Instantly share code, notes, and snippets.

@skipperkongen
Created January 25, 2019 10:33
Show Gist options
  • Save skipperkongen/60305eef6e170a1759c5b5fe0035f6bf to your computer and use it in GitHub Desktop.
Save skipperkongen/60305eef6e170a1759c5b5fe0035f6bf to your computer and use it in GitHub Desktop.
Show numpy array as image in matplotlib/Jupyter
from matplotlib import pyplot as plt
import numpy as np
a = np.random.randn(10,10)
plt.imshow(a, cmap='gray')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment