小编Sam*_*Min的帖子

如何删除 Seaborn 构面网格中重复的轴标签?

我正在尝试删除“时间”的重复轴 x 标签,底部四个面板除外

我应该怎么办?

grid = sns.FacetGrid(df_va1, col = 'Subject', hue = 'Subject', palette = 'GnBu_d',
                   col_wrap = 4, height = 1.5, aspect= .9)
grid.map(plt.plot, 'TimePoint', 'values', marker = 'o')
grid.set(xticks = [0,3,6,12], yticks = [0, 0.5, 1], xlim = (-0.5,12.5),
        xlabel = 'time', ylabel = 'values')
grid.fig.tight_layout(w_pad=1)
Run Code Online (Sandbox Code Playgroud)

这是当前的情节 在此输入图像描述

python matplotlib python-3.x seaborn

4
推荐指数
1
解决办法
2217
查看次数

标签 统计

matplotlib ×1

python ×1

python-3.x ×1

seaborn ×1