Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- m = np.zeros((100,100,3),dtype = np.uint8)
- for i in range(8):
- for j in range(8):
- if (i+j)%2 ==0:
- m[i*100//8:(i+1)*100//8,j*100//8:(j+1)*100//8] = 255
- plt.imshow(m)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement