Heat-maps with Dendrogram using Python

Jeril Kuriakose
1 min readAug 3, 2017

In this post I will be showing how to make heat-maps with dendrogram using Python’s Matplotlib library. I came across a post about heat-maps with dendrogram using R and I tried using it with R, but I found R bit tough because of my lack of exposure with R. Thats when I decided to do the same using Python.

I searched the web and did some research, and was finally able to do it using Python.

The dependencies are as follows:

Scipy
Matplotlib

The following code will give us the the heat-maps with dendrogram:

This is how our dendrogram will look:

heat-maps with dendrogram using Python

Happy coding!!!

--

--