当前位置:网站首页>Matplotlib common charts
Matplotlib common charts
2022-07-01 23:23:00 【Cold Lane (* _*)】
Broken line diagram
It can display contact data that changes over time , Therefore, it is very useful for displaying the trend of data at equal time intervals .
Applicable type
1. Basal body temperature curve
2. Student achievement trend chart
3. Stock charts
4. Monthly sales statistical analysis chart
5. Statistics of website visits

A little change , Better to see

Simple histogram
Also known as bar graph , Histogram , Bar chart . It's a statistical chart with the length of the rectangle as the variable .
Applicable type
Compare two or more data , It is suitable for small data set analysis
Grammar format
plt.bar(x,height,width,*,align='center',**kwargs)x yes x Axis data
height Is the height of the column , It's also y Axis
align Is alignment
kwargs It's a keyword parameter , Other optional parameters , Such as color,alpha,label

Basic histogram
The usage is similar to what
Take a little test
Get ready Excel



Add this , The color lightens , It's much better

Multi histogram
Chou Chou

One
well , Two
Make a change

Basic histogram
Also known as mass distribution diagram , There are a series of longitudinal stripes or line segments with different heights to represent the data distribution .
grammar
plt.hist(x,bins)x It's a dataset
bins Is the interval distribution of statistical data


Pie chart
It is often used to show the proportion of each part in the whole
grammar
plt.pie(x,labels,colors,labeldistance,autopct,startangle,radius,center,textprops)x Is the proportion of each pie chart
labels Is the explanatory text displayed on the outside of each pie chart
labeldistance Is the drawing position of the mark , The ratio to the radius , The default value is 1.1
autopct Is to set the percentage of pie chart , You can use a formatted string or format function
startangle Is the starting drawing angle , The default is x The axis is drawn counterclockwise
radius Is the pie radius , The default value is 1
center Is a list of floating point types , Optional parameters , The default value is 0.0 Indicates the center of the chart
textprops Is to set the format of labels and proportions , Dictionary type

Make a change

边栏推荐
- AirServer最新Win64位个人版投屏软件
- 问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
- mysql binlog的清理
- 转行软件测试,知道这四点就够了!
- SWT / anr problem - SWT causes low memory killer (LMK)
- 为什么PHP叫超文本预处理器
- Force buckle 710 Random numbers in the blacklist
- Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
- 日本购物网站的网络乞丐功能
- Matplotlib常用設置
猜你喜欢

CKS CKA ckad change terminal to remote desktop

MT manager test skiing Adventure

物联网应用技术专业是属于什么类

What category does the Internet of things application technology major belong to

【微服务|Sentinel】sentinel整合openfeign

Paramètres communs de matplotlib

微信个人小商店一键开通助手小程序开发

AAAI22 | 结构标记和交互建模:用于图分类的“SLIM”网络

2022安全员-C证考试题模拟考试题库及模拟考试

Programming English vocabulary notebook
随机推荐
云信小课堂 | IM及音视频中常见的认知误区
RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
Istio, ebpf and rsocket Broker: in depth study of service grid
“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有
从第三次技术革命看企业应用三大开发趋势
Daily three questions 6.30
from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘
CKS CKA CKAD 将终端更改为远程桌面
Istio、eBPF 和 RSocket Broker:深入研究服务网格
CKS CKA ckad change terminal to remote desktop
Detailed explanation of twenty common software testing methods (the most complete in History)
De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'
Jielizhi Bluetooth headset quality control and production skills [chapter]
CADD course learning (3) -- target drug interaction
距离度量 —— 汉明距离(Hamming Distance)
关于游戏性能优化的一些感想
Matplotlib常用設置
实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
dat. GUI
Create Ca and issue certificate through go language