Scaling of heat map compared with hierarchical cluster using python

What is linkage_matrix here? I think I know what your problem is but I cannot be sure unless I know the details of your program!