data = np.random.random([500, 500]) plt.figimage(data, resize=True)