数据处理之Matplotlib
Matplotlib简介
Matplotlib 包含了几十个不同的模块, 如 matlab、mathtext、finance、dates 等,而 pylot 则是我们最常用的绘图模块
内容
1.绘制正弦曲线,并设置标题、坐标轴名称、坐标轴范围
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689614.png)
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689601.png)
2.同一坐标系中绘制多种曲线并通过样式、宽度、颜色加以区分
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689590.png)
3.绘制多轴图,即将多幅子图绘制在同一画板。
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689565.png)
4.直方图的绘制(数据自己定义)
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689554.png)
5.绘制散点图
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689526.png)
6.选做题(尝试matplotlib库的其它功能,如2D,3D等)
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689506.png)
![image.png](http://www.graph-edu.cn:9000/static/images/2016412344_1_1553689490.png)
参考
《基于python的数据分析三剑客》