Make the size of a heatmap bigger with seaborn

后端 未结 3 807
粉色の甜心
粉色の甜心 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 08:03

    I do not know how to solve this using code, but I do manually adjust the control panel at the right bottom in the plot figure, and adjust the figure size like:

    f, ax = plt.subplots(figsize=(16, 12))
    

    at the meantime until you get a matched size colobar. This worked for me.

提交回复
热议问题