import numpy as np import matplotlib.pyplot as plt plt.matshow(np.random.random((50,50))); plt.show()