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...3.1 颜色、线型与标记import matplotlib.pyplot as plt# 绘制带有颜色、线型和标记的折线图x = [1, 2, 3, 4, 5]y = [2, 4, 6, 8, 10]plt.plot...(x, y, color="red", linestyle="--", marker="o")# 设置图表标题和坐标轴标签plt.title("Line Chart")plt.xlabel("X-axis