2.1 折线图import matplotlib.pyplot as plt# 绘制折线图x = [1, 2, 3, 4, 5]y = [2, 4, 6, 8, 10]plt.plot(x, y)# 设置图表标题和坐标轴标签...as plt# 绘制散点图x = [1, 2, 3, 4, 5]y = [2, 4, 6, 8, 10]plt.scatter(x, y)# 设置图表标题和坐标轴标签plt.title("Scatter...# 绘制柱状图x = ["A", "B", "C", "D", "E"]y = [10, 20, 30, 40, 50]plt.bar(x, y)# 设置图表标题和坐标轴标签plt.title("Bar...(x, y, color="red", linestyle="--", marker="o")# 设置图表标题和坐标轴标签plt.title("Line Chart")plt.xlabel("X-axis..., 6, 8, 10]axes[0, 0].plot(x1, y1)axes[0, 0].set_title("Line Chart 1")# 在第二个子图中绘制散点图x2 = [1, 2, 3, 4,