Drawing the matrix