Python-Matplotlib 18 注释
EG1:
import numpy as np
import matplotlib.pyplot as plt
y = np.arange(-5, 6,1)
plt.plot(y, y*y)
plt.annotate('Annotate' , xy=(0,1) , xytext=(0,5) ,
arrowprops=dict(facecolor='r' , frac=0.2 )
)
plt.show()
