当前位置:网站首页>认识--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数据,然后再做成折线图

边栏推荐
- Compare the version number [double pointer to intercept the string you want]
- [MySQL] index creation, viewing and deletion
- Force buckle 710 Random numbers in the blacklist
- 赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链
- The online beggar function of Japanese shopping websites
- 上海炒股开户选择手机办理安全吗?
- Business visualization - make your flowchart'run'up
- Cisco test -- the concept and configuration test of routing
- What are the benefits of third party acceptance testing? Recommended by professional third-party software testing institutions
- Programming English vocabulary notebook
猜你喜欢

Win 10 mstsc connect RemoteApp

实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”

Detailed explanation of twenty common software testing methods (the most complete in History)

常见的二十种软件测试方法详解(史上最全)

CADD course learning (3) -- target drug interaction

软件测试之「 性能测试」总结,新手上路必会知识点

赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链

"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye

2022 R1 fast opening pressure vessel operation test questions and answers

RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
随机推荐
Where can the courses purchased by CSDN be accessed
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
[MySQL] index classification
Who do you want to know when opening a stock account? Is it safe to open an account online?
Programming English vocabulary notebook
91. (cesium chapter) cesium rocket launch simulation
常见的二十种软件测试方法详解(史上最全)
Airserver latest win64 bit personal screen projection software
MySQL -- deduction of index storage model
Cisco -- highly available and reliable network examination
赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链
思科考试--冗余网络
js——arguments的使用
每日三题 6.30
Detailed explanation of twenty common software testing methods (the most complete in History)
Data enhancement of semi supervised learning
硅谷产品实战学习感触
Some abilities can't be learned from work. Look at this article, more than 90% of peers
"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye
Contents of other parts of the map