相关疑难解决方法(0)

如何从 seaborn / matplotlib 图中删除或隐藏 x 轴标签

我有一个箱线图,需要删除 x 轴('user_type' 和 'member_gender')标签。鉴于以下格式,我该怎么做?

sb.boxplot(x="user_type", y="Seconds", data=df, color = default_color, ax = ax[0,0], sym='').set_title('User-Type (0=Non-Subscriber, 1=Subscriber)')
sb.boxplot(x="member_gender", y="Seconds", data=df, color = default_color, ax = ax[1,0], sym='').set_title('Gender (0=Male, 1=Female, 2=Other)')
Run Code Online (Sandbox Code Playgroud)

python matplotlib python-3.x pandas seaborn

12
推荐指数
1
解决办法
3万
查看次数

标签 统计

matplotlib ×1

pandas ×1

python ×1

python-3.x ×1

seaborn ×1