实例一:
import numpy as np import matplotlib.pyplot as plt x=np.linspace(0,6,100) y=np.cos(2*np.pi*x)*np.exp(-x)+0.8 plt.plot(x,y,'k',color='r',linewidth=3,linestyle='-') plt.legend("pqy") plt.show() |
显示结果为:
本文共 258 字,大约阅读时间需要 1 分钟。
实例一:
import numpy as np import matplotlib.pyplot as plt x=np.linspace(0,6,100) y=np.cos(2*np.pi*x)*np.exp(-x)+0.8 plt.plot(x,y,'k',color='r',linewidth=3,linestyle='-') plt.legend("pqy") plt.show() |
显示结果为:
转载于:https://www.cnblogs.com/panqiaoyan/p/10709552.html