#coding=utf-8
#numpy测试
import  numpy as np
import matplotlib.pyplot as plt
xdata=np.linspace(1.0,3.0,5)[:,np.newaxis]
noise=np.random.normal(0,0.02,xdata.shape)
plt.figure()
plt.scatter(xdata,None)
plt.plot(xdata,None,'r-',lw=5)
plt.show()
print(noise)
ae395f53a15d67b733722604c2cde23ea79b3a7b
<mask token>

<mask token>
plt.figure()
plt.scatter(xdata, None)
plt.plot(xdata, None, 'r-', lw=5)
plt.show()
print(noise)

<mask token>
xdata = np.linspace(1.0, 3.0, 5)[:, np.newaxis]
noise = np.random.normal(0, 0.02, xdata.shape)
plt.figure()
plt.scatter(xdata, None)
plt.plot(xdata, None, 'r-', lw=5)
plt.show()
print(noise)

import numpy as np
import matplotlib.pyplot as plt
xdata = np.linspace(1.0, 3.0, 5)[:, np.newaxis]
noise = np.random.normal(0, 0.02, xdata.shape)
plt.figure()
plt.scatter(xdata, None)
plt.plot(xdata, None, 'r-', lw=5)
plt.show()
print(noise)

#coding=utf-8
#numpy测试
import  numpy as np
import matplotlib.pyplot as plt
xdata=np.linspace(1.0,3.0,5)[:,np.newaxis]
noise=np.random.normal(0,0.02,xdata.shape)
plt.figure()
plt.scatter(xdata,None)
plt.plot(xdata,None,'r-',lw=5)
plt.show()
print(noise)