Can anyone help me with the latex code where i can make the labels of a bordermatrix angular?
The current code:
\documentclass[11pt, a4paper, BCOR=10mm, english]{scrbook}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage[counterclockwise]{rotating}
\usepackage{etoolbox}
\let\bbordermatrix\bordermatrix
\patchcmd{\bbordermatrix}{8.75}{4.75}{}{}
\patchcmd{\bbordermatrix}{\left(}{\left[}{}{}
\patchcmd{\bbordermatrix}{\right)}{\right]}{}{}
\usepackage{fp}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \fpeval \fp_eval:n
\ExplSyntaxOff
\protected\def\fpset#1#2{\edef#1{\fpeval{#2}}}
\begin{document}
\fpset\RAngle{-45}
\begin{center}
\resizebox{\linewidth}{!}{
$\bbordermatrix{ & \rotatebox{\RAngle}{$m_{2}E_{1}$} & \rotatebox{\RAngle}{$m_{2}E_{2}$} & \rotatebox{\RAngle}{$m_{2}E_{3}$} & \rotatebox{\RAngle}{$m_{2}E_{4}$} & \rotatebox{\RAngle}{$m_{2}E_{5}$} & \rotatebox{\RAngle}{$m_{2}E_{1}\cap m_{2}E_{2}\cap m_{2}E_{3}\cap m_{2}E_{4}\cap m_{2}E_{5}$} \cr
\rotatebox{\RAngle}{$m_{1}E_{1}$} & \colorbox{Green!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Green!50}{(0.01*0.01) = 0.01} \cr
\rotatebox{\RAngle}{$m_{1}E_{2}$} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Yellow!50}{0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Yellow!50}{(0.01*0.01) = 0.01} \cr
\rotatebox{\RAngle}{$m_{1}E_{3}$} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Aquamarine!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Aquamarine!50}{(0.01*0.01) = 0.01} \cr
\rotatebox{\RAngle}{$m_{1}E_{4}$} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Orange!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Orange!50}{(0.01*0.01) = 0.01} \cr
\rotatebox{\RAngle}{$m_{1}E_{5}$} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Gray!50}{(0.01*0.01) = 0.01} & \colorbox{Magenta!50}{(0.01*0.01) = 0.01} & \colorbox{Magenta!50}{(0.01*0.01) = 0.01} \cr
\rotatebox{\RAngle}{$m_{1}E_{1}\cap m_{1}E_{2}\cap m_{1}E_{3}\cap m_{1}E_{4}\cap m_{1}E_{5}$} & \colorbox{Green!50}{(0.01*0.01) = 0.01} & \colorbox{Yellow!50}{(0.01*0.01) = 0.01} & \colorbox{Aquamarine!50}{(0.01*0.01) = 0.01} & \colorbox{Orange!50}{(0.01*0.01) = 0.01} & \colorbox{Magenta!50}{(0.01*0.01) = 0.01} & \colorbox{MidnightBlue!50}{(0.01*0.01) = 0.01} \cr
}$
}
\end{center}
\end{document}
This results to a the following:

I want the matrix to look something like this which i did in photoshop:

