matplotlib注释
import numpy as np
import matplotlib.pyplot as plt
x=np.arange(-10,11,1)
y=x**2
plt.plot(x,y)
plt.annotate(‘this is the bottom’,xy=(0,1),xytext=(0,20),arrowprops=dict(facecolor=‘r’,headlength=10,headwidth=30,width=10)) #xy表示箭头的起始坐标,xytext表示第一个字母的起始坐标
plt.show()