In a MatrixPlot (1,1) is in the NW corner. Is it possible to have it in the SW one ?
1 Answer
$\begingroup$
$\endgroup$
1
Use the DataReversed
option of MatrixPlot
,
mat = ConstantArray[0, {4, 4}];
mat[[;; 2, ;; 2]] = {{1, 2}, {3, 0}};
MatrixPlot[mat, DataReversed -> #] & /@ {{False, False},
{False, True}, {True, False}, {True, True}}
-
$\begingroup$ I think it will be more clear if you have
mat[[{1, 2}, {1, 2}]] = {{1, 2}, {3, 0}};
$\endgroup$– BlacKowCommented Oct 17, 2016 at 17:47