当前位置:网站首页>Matplotlib plt Hist() parameter explanation
Matplotlib plt Hist() parameter explanation
2022-06-29 23:24:00 【Guoqingru】
matplotlib matplotlib in plt.hist() Parameter interpretation

import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.pyplot import MultipleLocator
from matplotlib import ticker
%matplotlib inline
plt.figure(figsize=(8,5), dpi=80)
# Take parameters to receive hist Return value , It is mainly used to record the returned value of the group , Tag data labels
n, bins, patches = plt.hist(data13['carrier_no'], bins=11, rwidth=0.8, range=(1,12), align='left', label='xx Histogram ')
for i in range(len(n)):
plt.text(bins[i], n[i]*1.02, int(n[i]), fontsize=12, horizontalalignment="center") # tagging , Mark the number of samples on each histogram in an appropriate position
plt.ylim(0,16000)
plt.title(' Histogram ')
plt.legend()
# plt.savefig(' Histogram '+'.png')
plt.show()
边栏推荐
- error: C2665: “QMessageBox::critical”: 4 个重载中没有一个可以转换所有参数类型
- Qdomdocument and qdomnode are used in QT to read XML
- Solr基础操作5
- 成为唯一的key
- 剑指 Offer 38. 字符串的排列
- Regular expressions: characters (2)
- Ansible automatic operation and maintenance
- Leetcode 1385. Distance value between two arrays
- Uniapp copy contents to clipboard
- 开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
猜你喜欢

按头安利!好看又实用的电机 SolidWorks模型素材看这里

声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏

matplotlib matplotlib可视化之柱状图plt.bar()

疫情下我离职一年,收入增长了10倍

NRM explanation
![PROJECT #1 - BUFFER POOL [CMU 15-445645]笔记](/img/33/304e3e78f62b156d0863a41d243679.png)
PROJECT #1 - BUFFER POOL [CMU 15-445645]笔记

采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势

Hematemesis finishing: a rare map of architects!

Regular expressions: characters (2)

语音信号处理(三):语音信号分析【连续的“模拟信号”--采样、量化、编码-->离散的“数字信号”】
随机推荐
Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
How can the local / park do a good job in industrial analysis?
Solr基础操作
Error: c2665: "qmessagebox:: critical": none of the four overloads can convert all parameter types
分布式消息中间件设计
Design of Distributed Message Oriented Middleware
深度学习的历史
matplotlib matplotlib中plt.hist()参数解释
Pytest initializing and cleaning up the environment
JS function related review
nrm详解
Shell -- text processing command
111.简易聊天室14:聊天室客户端
Pain points and solutions of M1 notebook home office | community essay solicitation
均值、方差、标准差、协方差的概念及意义
软件测试 接口测试 Jmeter 5.5 安装教程
Laravel creates its own facade extension geoip to obtain country, region and city information according to IP
Solr basic operation
Regular expressions: characters (2)
CE第二次作业