mistake fixed between mapping x and y from a plot on to columns and rows
mistake fixed visualizing the matrix. now the coordinates in the pictures are the indices of the matrix and not of by some weird offset