当前位置:网站首页>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

边栏推荐
- Some abilities can't be learned from work. Look at this article, more than 90% of peers
- window安装wsl(二)
- Daily three questions 6.29
- 【微服务|Sentinel】@SentinelResource详解
- CKS CKA CKAD 将终端更改为远程桌面
- MySQL binlog cleanup
- Detailed explanation of twenty common software testing methods (the most complete in History)
- 众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
- rviz打开后如何显示实时2D地图
- 数字峰会人气火爆,城链科技引发新一轮商业变革
猜你喜欢

Huisheng Huiying 2022 intelligent, fast and simple video editing software

Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration

Glass mosaic

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

Stm32f030f4 drives tim1637 nixie tube chip

Matplotlib common settings

纪念成为首个DAYUs200三方demo贡献者

马赛克后挡板是什么?

物联网现状及未来发展趋势

神经网络物联网的未来趋势与发展
随机推荐
SWT/ANR问题--SWT 导致 kernel fuse deadlock
物联网现状及未来发展趋势
What is the difference between memory leak and memory overflow?
plain framework的实际应用和扩展
STM32F030F4驱动TIM1637数码管芯片
物联网开发零基础教程
众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
物联网应用技术专业是属于什么类
2022年起重机司机(限桥式起重机)考试试题及模拟考试
CKS CKA ckad change terminal to remote desktop
What is the mosaic tailgate?
Glass mosaic
Wechat personal small store one click opening assistant applet development
攻防演习防御体系构建之第三篇之建立实战化的安全体系
Force buckle 710 Random numbers in the blacklist
[MySQL] index creation, viewing and deletion
MT manager test skiing Adventure
The difference between timer and scheduledthreadpoolexecutor
What is mosaic?
SWT / anr problem - SWT causes kernel fuse deadlock