In [2]:
import numpy

In [3]:
a = numpy.zeros([3,2])

In [4]:
print(a)


[[ 0.  0.]
 [ 0.  0.]
 [ 0.  0.]]

In [5]:
a[0,0] = 1
a[0,1] = 2
a[1,0] = 3
a[2,1] = 1

In [6]:
print(a)


[[ 1.  2.]
 [ 3.  0.]
 [ 0.  1.]]

In [11]:
import matplotlib.pyplot
%matplotlib inline

In [9]:
matplotlib.pyplot.imshow(a, interpolation="nearest")


Out[9]:
<matplotlib.image.AxesImage at 0x7fa0628bc470>