How to customize the axis label direction in heatmap

Hi,
Previously I asked solution for how to customize the axis label in heatmap which can be found in the following link.

But now I also need help to modify the direction of the axis label. As the X-axis label is vertical, I want it to horizontal direction. Please help.

Maybe the second answer in the StackOverflow thread will help you.

Dear FJCC,

Thank you very much. It worked.