ZhangZhihui's Blog  

Need to set xticks first, then set xticklabels.

 

        x = np.arange(len(df_pivot['tla']))
        ax2.set_xticks(x)
        ax2.set_xticklabels(df_pivot['tla'])

 

posted on 2022-02-16 23:02  ZhangZhihuiAAA  阅读(572)  评论(0编辑  收藏  举报