matplot 代码实例 #!/usr/bin/env python # coding=utf-8 import numpy as np import matplotlib.pyplot as plt ax = plt.subplot(111) t = np.arange(0,5,0.01) s = np.cos(2*np.pi*t) line = plt.plot(t,s,lw=5) plt.annotate('local max',xy=(2,1),xytext=(3,1.5),arrowp