How to plot heat map with matplotlib?
<p>How to use python and matplotlib to plot a picture like following?
I know how to plot the 2D heat map, but it frustrated me a lot with plotting the bar on top of the heat map, and the bar between the color bar and heat map.
How to add those two bars on the picture, and show the number in x axis or y axis belongs to which group? </p>

<p>Thanks very much for all the responses.</p>

<p><a href="https://i.stack.imgur.com/gSsak.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gSsak.png" alt="enter image description here"></a></p>