import matplotlib.pyplot as plt
import numpy as np
x=np.arange(1, 21)
y_max = np.array([32, 33, 27, 34, 35, 32, 28, 25, 22, 27, 30, 33, 26, 34, 36, 32, 29, 26, 25, 30])
y_min = np.array([18, 24, 22, 22, 25, 25, 22, 24, 22, 20, 26, 24, 20, 23, 21, 27, 25, 21, 28, 20])
#绘制折线图
plt.plot(x, y_max, color='g')
plt.plot(x, y_min, color='r')
plt.show()