如何使用seaborn生成高分辨率热图?

时间:2017-04-11 02:50:45

标签: python heatmap seaborn

我有太多的功能(~100)用于相关,导致分辨率低的数字。我怎样才能提高分辨率?

sns.heatmap(Feature_corr, cbar = True,  square = True, annot=False,annot_kws={'size': 15},  cmap= 'coolwarm')

1 个答案:

答案 0 :(得分:3)

figure之前从matplotlib.pyplot致电heatmap,并将图片尺寸设为figsize,即:

from matplotlib import pyplot
pyplot.figure(figsize=(15, 15)) # width and height in inches
sns.heatmap(Feature_corr, cbar = True,  square = True, annot=False,annot_kws={'size': 15},  cmap= 'coolwarm')