Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- x=np.linspace(0,15,200)
- y=np.exp(-0.2*x)*np.sin(2*x)
- plt.plot(x,y,color='green',label='y=f(x)=exp(-0.2x)sin(2x)')
- y=np.exp(-0.2*(x-0.8))*np.sin(2*(x-0.8))
- plt.grid(color='y')
- plt.yticks([-1,-0.5,0.0,0.5],color='red')
- plt.xticks(color='blue',rotation=-45)
- plt.title(u'Затухающие колебания',color='fuchsia')
- plt.plot(x,y,'r:',label='y=f(x-3.14159)')
- plt.legend(loc='lower right',fontsize=11)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement