文章目录 初识可视化模块—Matplotlib 1.绘制折线图 2.绘制柱形图 xlwings模块与pandas模块的交互 xlwings模块与Matplotlib模块的交互 初识可视化模块—Matplotlib 1.绘制折线图 import matplotlib.pyplot as plt x = [1,2,3,4,5] y = [2,4,6,8,10] plt.plot(x,y) plt.show() 2.绘制柱形图 import matplotlib.pyplot as plt x = [1,2,3,4,5,6