confusion matrix in Latex with rotated labels - Stack Exchange 4. shorter and simpler: all \multicolumn {1} {c} {...} are superfluous. for \rotatebox use origin=center. for more vertical (symmetrically distributed) spaces use macro \makegapedcells from the package makecell. it is needed for spacing rotated word "actual" in multirow cell in the first column. for horizontal lines are used \cline {2-4}