I have the next code:
heatmap = sns.clustermap(corrMatrix, row_colors=row_colors,
#metric='correlation',
#method='single',
xticklabels=True, yticklabels=True,
cmap='coolwarm', annot=False, fmt=".2f",
#annot_kws={'size':6}, square=False,
dendrogram_ratio=(.1, .2),
cbar_pos=(1, .2, .03, .4))
loc, labels = plt.xticks()
heatmap.set_xticklabels(labels, rotation=90)
heatmap.set_yticklabels(labels, rotation=0)
bottom, top = heatmap.get_ylim()
heatmap.set_ylim(bottom + 0.5, top -0.5)
heatmap.savefig(r'similarity' + '.svg', format='svg', dpi=600, bbox_inches = "tight" )
Works good but doesnt save the figure, only with this type of plot (clustermap) i was trying with plt.savefig()
and figure = heatmap.get_figure()
and nothing