Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- m = np.zeros((100, 100))
- for i in range(100):
- for j in range(100):
- if (i > 38) and (i < 62) and (j > 38) and (j < 62):
- m[i, j] = 1
- plt.imshow(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement