当前位置:网站首页>认识--Matplotlib
认识--Matplotlib
2022-07-01 22:50:00 【冷巷(*_*)】
目录
Matplotlib简介
1.Matplotlib是一个python2D绘图库,常用于数据可视化。
2.Matplotlib非常强大,只需几行代码即可绘制各种数据可视图。
3.Matplotlib不仅可以绘制最基础的图表,还可以绘制一些高级图表:双y轴可视化数据分析图表,堆叠柱形图,渐变饼形图,等高线柱形图。
4.Matplotlib还可以绘制3D的。
Matplotlib安装
pip install matplotlib
三步绘图
1.引入pyplot模块
2.使用plot方法
3.运行程序


注意,ro是红色
图表的常用设置
基本绘图主要函数
matplotlib.pyplot.plot(x,y,format_string,**kwargs)
x是x轴,y是y轴,format_string控制曲线格式的字符串,包括颜色、线条样式和标记样式 *kwargs 键值参数,相当于一个字典折线图测试下,看看

下面来个好玩的
先建一个Excel

然后用pandas获取这个Excel数据,然后再做成折线图

边栏推荐
- MySQL -- deduction of index storage model
- Compare the version number [double pointer to intercept the string you want]
- Use 3DMAX to make a chess piece
- Openresty load balancing
- RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
- What is the mosaic tailgate?
- Advanced skills of testers: a guide to the application of unit test reports
- locust的使用
- Jielizhi, production line assembly link [chapter]
- 软件测试之「 性能测试」总结,新手上路必会知识点
猜你喜欢

Three development trends of enterprise application from the perspective of the third technological revolution

Introduction and use of plantuml

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

Design of ESP automatic download circuit

Copy ‘XXXX‘ to effectively final temp variable

从第三次技术革命看企业应用三大开发趋势

91. (cesium chapter) cesium rocket launch simulation

Explain the use of locksupport in detail

Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?

2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
随机推荐
locust的使用
建模和影视后期有什么关联?
Istio, ebpf and rsocket Broker: in depth study of service grid
【微服务|Sentinel】SentinelResourceAspect详解
数字峰会人气火爆,城链科技引发新一轮商业变革
Microservice stability management
[MySQL] index classification
毕业季,既是告别,也是新的开始
plain framework的实际应用和扩展
硅谷产品实战学习感触
思科考试--冗余网络
CKS CKA ckad change terminal to remote desktop
Advanced skills of testers: a guide to the application of unit test reports
window安装wsl(二)
Jerry's burning of upper version materials requires [chapter]
Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
若干互联网暴露面的收敛及处置建议
Istio、eBPF 和 RSocket Broker:深入研究服务网格
Explain ThreadLocal in detail
Mysql 5.7 实现 rank 排名