,线条使用虚线,颜色使用绿色
# label:设置线条的标签为'sin(x)'
plt.plot(x, y, '--g', lw=2, label='sin(x)')
# 调整坐标轴刻度范围
plt.xlim...# matplotlib中grid()函数用于设置图形中的网格线。...color = 'g',#注释文本的颜色
fontsize = 15,#注释文本的字体大小
arrowprops = {...g'#箭头颜色
})
# 添加sin(x)的最低点注释
plt.annotate('min buy',
xy = (np.pi*3/2, -1),...g',#注释文本的颜色
fontsize = 15,#注释文本的字体大小
arrowprops = {
'arrowstyle