Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as num
- import matplotlib.pyplot as plt
- a = num.random.random((5,2))
- a = num.round(a, 0)
- b = num.random.random((5,1))
- b = num.round(b, 0)
- с = num.arange(5,2)
- c = num.flip(a, 1)
- x = num.concatenate((a,b), 1)
- x = num.concatenate((x,c), 1)
- x = x.astype(int)
- fig, ax = plt.subplots()
- ax.imshow(x)
- fig.set_figwidth(6)
- fig.set_figheight(6)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement