3 ms·
My python+numpy+matplotlib version from when I was playing around with it: import numpy as np import matplotlib.pyplot as plt n = 2048 X, Y = np.mgrid[
by vq 2y ago
My python+numpy+matplotlib version from when I was playing around with it:
import numpy as np
import matplotlib.pyplot as plt
n = 2048
X, Y = np.mgrid[:n,:n]
plt.imshow(X^Y, cmap=plt.cm.Spectral)
plt.show()