Matplotlib 删除seaborn barplot中的条间距

Matplotlib 删除seaborn barplot中的条间距,matplotlib,seaborn,Matplotlib,Seaborn,我试图绘制以下数据。持续时间为1月至12月。类型从1到7不等。关键是,并非每个月都存在所有类型。这不是缺少值,类型根本不存在 Month Type Coef Jan 1 2.3 Jan 2 2.1 .. 代码: 结果 我想用箭头删除空间市场。使用seaborn几乎不可能。您可以手动将条形图定位在希望其显示的位置,如图所示(您需要根据需要自定义ind)。 ax = sns.barplot(x = 'Month', y = 'Coef_E',hue = 'LC

我试图绘制以下数据。持续时间为1月至12月。类型从1到7不等。关键是,并非每个月都存在所有类型。这不是缺少值,类型根本不存在

Month  Type  Coef
Jan      1    2.3
Jan      2    2.1
..
代码:

结果


我想用箭头删除空间市场。

使用seaborn几乎不可能。您可以手动将条形图定位在希望其显示的位置,如图所示(您需要根据需要自定义
ind
)。
ax = sns.barplot(x = 'Month', y = 'Coef_E',hue = 'LCZ',data = df_E, palette=palette)