UserWarning: FixedFormatter should only be used together with FixedLocator

在使用set_xticklabels时,报错 UserWarning: FixedFormatter should only be used together with FixedLocator

究其原因,原来set_xticks()和set_xticklabels()需要同时使用,缺一不可

 

posted @ 2022-05-15 10:36  华小电  阅读(1162)  评论(0编辑  收藏  举报