여기 내 질문이 있습니다 : 여기
sns.clustermap ()
그림을 사용하여 7 개의 변수 계수를 플로팅 합니다.
http://i4.tietuku.com/ab10ee8d1983361f.png
label='big
==> 효과가 없다 http://i11.tietuku.com/5068224d5bbc7c00.png
내 코드 :
ds = pd.read_csv("xxxx.csv")
corr = ds.corr().mul(100).astype(int)
cmap = sns.diverging_palette(h_neg=210, h_pos=350, s=90, l=30, as_cmap=True)
sns.clustermap(data=corr_s, annot=True, fmt='d',cmap = "Blues",annot_kws={"size": 16},)
sns.set(font_scale=1.4)
데이터를 플로팅하기 전에 전화 를 고려하십시오 . 범례 및 축의 모든 글꼴 크기가 조정됩니다.
이에,
물론 좋은 설정으로 생각할 때마다 스케일링을 조정하십시오.
암호:
sns.set(font_scale=1.4)
cmap = sns.diverging_palette(h_neg=210, h_pos=350, s=90, l=30, as_cmap=True)
sns.clustermap(data=corr, annot=True, fmt='d', cmap="Blues", annot_kws={"size": 16})
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다