import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
print("************plot**************")
x = np.linspace(-1, 1, 50)
y = 2 * x + 1
y1 = x ** 2
# plt.plot(x, y1)
# plt.show()
print("************figure**************")
print("========两张figure 中画出不同的图像========")
x3 = np.linspace(-3, 3, 50)
y3 = 2 * x + 1
y4 = x ** 2
# plt.figure()
# plt.plot(x3, y3)
#
# plt.figure(num=3, figsize=(8, 5))
# plt.plot(x3, y4)
# plt.show()
print("========一张figure 中画出不同的图像========")
x5 = np.linspace(-3, 3, 50)
y5 = 2 * x + 1
y6 = x ** 2
plt.figure()
plt.figure(num=3, figsize=(8, 5))
plt.plot(x5, y5, color='red', linewidth=2.0, linestyle='--')
plt.plot(x5, y6)
plt.show()