Make the size of a heatmap bigger with seaborn

后端 未结 3 736
粉色の甜心
粉色の甜心 2021-01-31 07:22

I create a heatmap with seaborn

df1.index = pd.to_datetime(df1.index)
df1 = df1.set_index(\'TIMESTAMP\')
df1 = df1.resample(\'30min\').mean()
ax = sns.heatmap(         


        
3条回答
  •  孤街浪徒
    2021-01-31 07:56

    add plt.figure(figsize=(16,5)) before the sns.heatmap and play around with the figsize numbers till you get the desired size

    ...
    
    plt.figure(figsize = (16,5))
    
    ax = sns.heatmap(df1.iloc[:, 1:6:], annot=True, linewidths=.5)
    

提交回复
热议问题