python如何获取matplotlib图中的坐标轴标签get_yticklabels
python如何获取matplotlib图中的坐标轴标签get_yticklabelsfrom matplotlib import pyplot as pltfig = plt.figure(figsize=(16,12), dpi=(300))ax1 = fig.add_subplot(111)p = ax1.bar(range(5), range(5))plt.draw()>>> [item.get_text() for item in ax1.get_yticklab
原创
2021-09-14 09:48:06 ·
1652 阅读 ·
0 评论