Repeating x axis labels for all facets using FacetGrid in seaborn

前端 未结 2 530
栀梦
栀梦 2020-12-16 17:13

I am working with the FacetGrid example presented here that results in the plot below. In my data set, there is quite a lot of plots, and it would be convenient

2条回答
  •  暖寄归人
    2020-12-16 18:15

    Just add the following lines after your def label(): function. Although the plot doesn't look that good with the modification you want.

    for ax in g.axes.flat:
        _ = plt.setp(ax.get_xticklabels(), visible=True)
    

    Output

提交回复
热议问题