In [23]:
import numpy
import matplotlib.pyplot as plt
%matplotlib inline
In [24]:
a = np.arange(10)
b = a.reshape((5,2))
In [25]:
print a
print b
[0 1 2 3 4 5 6 7 8 9]
[[0 1]
 [2 3]
 [4 5]
 [6 7]
 [8 9]]
In [26]:
aa = np.arange(9)
aa = aa.reshape((3,3))
In [27]:
plt.imshow(aa)
plt.show()