I have several questions about labeling for clustermap in seaborn. First is it possible to extract the distance values for the hierarchical clustering, and plot the value on the tree structure visualization (maybe only the first three levels)
Here is my example code for creating a clustermap plot:
import pandas as pd
import numpy as np
import seaborn as sns
get_ipython().magic(u'matplotlib inline')
m = np.random.rand(50, 50)
df = pd.DataFrame(m, columns=range(4123, 4173), index=range(4123, 4173))
sns.clustermap(df, metric="correlation")
enter image description here
The other two questions are: - How to rotate the y labels since they overlap together.
- How to move the color bar to the bottom or right. (There was a question for the heatmap, but does not work for my case. Also does not address the color bar position)