数据可视化-Matplotlib绘制简单拆线图

要查看使用matplotlib可制作的各种图表,请访问 http://matplotlib.org/ 的示例画廊。单击画廊中的图表,就可查看用于生成图表的代码。 import matplotlib.pyplot as plt squares = [1, 4, 9, 16, 25] plt.plot(squares) plt.show() 解析: 首先要导入pyplot模块,这里还给它指定了别名p
相关文章
相关标签/搜索