Using [ClassifierMeasurementsObject](https://reference.wolfram.com/language/ref/ClassifierMeasurementsObject.html) you can plot nice ConfusionMatrix:

[![enter image description here][1]][1]

**But how to mimic this matrix plot from a plain Matrix?**

In other terms, from 

    M={{2,0},{1,1}}
    k={"A","B"}

I would like to reproduce the previous plot.

So far I tried:

    MatrixPlot[M,Frame->True,
                 FrameLabel->{"actual","predicted"},
                 ColorFunction->"Rainbow"]


[![enter image description here][2]][2]

but a lot of things are missing.

The most important are:

- numbers in the plot

- tick labels (note that they are rotated which is important as I have long names)


  [1]: https://i.sstatic.net/TbuPM.png
  [2]: https://i.sstatic.net/MHA8b.png