我有太多的功能(~100)用于相关,导致分辨率低的数字。我怎样才能提高分辨率?
sns.heatmap(Feature_corr, cbar = True, square = True, annot=False,annot_kws={'size': 15}, cmap= 'coolwarm')
答案 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')