Advertisement
Guest User

py

a guest
May 25th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. m = np.zeros((100,100,3),dtype = np.uint8)
  4. for i in range(8):
  5.     for j in range(8):
  6.         if (i+j)%2 ==0:
  7.             m[i*100//8:(i+1)*100//8,j*100//8:(j+1)*100//8] = 255
  8. plt.imshow(m)
  9. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement