:设置线条的标签为'sin(x)'
plt.plot(x, y, '--g', lw=2, label='sin(x)')
# 调整坐标轴刻度范围
plt.xlim(0, 10)
plt.ylim(-...1.5, 1.5)
# 设置轴标签
plt.xlabel('X axis')
plt.ylabel('Y axis')
# 设置坐标轴标签
# 坐标轴分成 0-10 公差为2 五组,每组对应的标签为数组各元素...# rotation 为标签 斜度 (防止标签重叠
# 字符串前面加 u 为的是使用unionCode 编码防止乱码
plt.xticks(np.arange(0,10,2),['2015-07-02...1),#箭头指向点的坐标
xytext = (np.pi/2, 1.3),#注释文本左端的坐标
weight = 'regular',#注释文本的字体粗细风格...,bold是粗体,regular是正常粗细
color = 'g',#注释文本的颜色
fontsize = 15,#注释文本的字体大小