hierarchical clustering with dendrograms in matplotlib?

hi all,

is there a way to plot the results of hierarchical clustering as a dendrogram on top and to the sides of a heatmap matrix? for example, like this figure:


any examples of how to do this in matplotlib would be greatly appreciated. thank you.