np.arange(-1, 5, 2)
->array([-1, 1, 3])
np.linspace(-1, 5, 3)
->array([-1., 2., 5.])
plt.figure(num = 3, figsize = (8,5))
plt.plot(x, y2, linestyle = '-.', label = 'AA')
plt.plot(x, y1, color='k', linestyle = '-', marker = 'o', label = 'BB')
plt.xlim((-1,2))
plt.ylim((-2,3)) //设置参数范围
plt.xticks(np.arange(-3,3,1)) //设置坐标刻度
plt.xlabel("x axis")
plt.ylabel('y axis')
plt.title('10 percent')
plt.show()