目的:
练习使用Matplotlib进行函数图像的绘制等数据处理任务。
题目:
一:实现函数图像的绘制
import numpy as np
import matplotlib.pyplot as plt
#import seaborn as sns
x = np.linspace (0,2,1000) #interval
#make it the function
y = np.exp( -1*(x**2) )
y *= (x-2)
y = np.sin(y) * np.sin(y)
plt.plot(x,y) # plot it
plt.plot( x , y ,color ='red', label = 'hello' ) # label for fun
plt.xla