#coding=utf-8 """ author=wanggang date:JAN,14,2020 功能:label设置为自己想要的部分 """ import numpy as np import matplotlib.pyplot as plt import calendar x = range(1,13,1) y = range(1,13,1) list1=['meta-learing','deep-learning','machine-learning','good night','look like','hello','word','thanks','well','phone','cap','cat','fly']#x轴刻度的list plt.plot(x,y) plt.xticks(x, list1[:],color='blue',rotation=60) plt.show()
画图设置自己的label
最新推荐文章于 2024-06-12 15:35:46 发布