Python

sns.heatmap plot size

ndlessrain 2023. 6. 21. 15:53
728x90

heatmap 사이즈가 작아서 크기 조절하는 방법.

 

import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(10,10))         # Sample figsize in inches
sns.heatmap(df1.iloc[:, 1:6:], annot=True, linewidths=.5, ax=ax)

728x90