pyplot中文手册_Matplotlib中文手册 PDF 下载
主要内容:
函数:
1. matplotlib.pyplot.acorr(x, hold=None, **kwargs)
自相关函数
acorr(x, normed=True, detrend=mlab.detrend_none, usevlines=True, maxlags=10, **kwargs) #x 的自相关
如果 normed = True,通过零滞后自相关规范数据,x 通过非趋势可调用(默认没有归
一化)的方式除趋势
数据绘制形如 plot(lags, c, **kwargs)
返回值是元组(lags, c, line),其中:
¥lags 是一个长度为 2×maxlags + 1 的滞后(lags)向量
¥C 是 2×maxlags + 1 的自相关向量
¥line 是一个 line2d 实例,通过 plot()返回
默认 linestyle 是 None,默认的 marker 是'o',交叉相关性是通过 numpy.correlate()函
数、mode = 2 实现的。
若 usevlines 是 True, vlines()将被调用(而不调用 plot()函数),用来绘制从起点
到 acorr 的垂线。否则,plot()由 Line2D properties 属性参数(kwargs)决定。
maxlags 是正整数,决定 lags 的显示数目。默认值 None 将返回(2×len(x)- 1)
个 lags,返回值是一个元组(lags, c, linecol, b),其中:
linecol 是 linecollection
b 是 x-axis
其他参数参见 Line2D的 kwargs 属性
2 . matplotlib.pyplot.annotate(*args, **kwargs)
创建一个文本注释:从指定点指向目标点
annotate('注释内容', xy, xytext=None,xycoords='data',textcoords='data', arrowprops=None, **kwargs)
xy:被注释点的位置,xytext:注释文本的位置坐标
xycoords 和 textcoords 是字符串,指示 xy 和 xytext 的坐标关系:
Property Description
‘figure points’
points from the lower left corner of the
figure
起点从 figure 左下角
‘figure pixels’
pixels from the lower left corner of the
figure
pixels(像素)从 figure 左
下角
‘figure fraction’
0,0 is lower left of figure and 1,1 is upper
right
(0,0)是 figure 的左下
方,(1,1)是右上方
‘axes points’ points from lower left corner of axes 起点从 axes 的左下方
‘axes pixels’ pixels from lower left corner of axes
pixels(像素)从 axes 左
下角
‘axes fraction’
0,0 is lower left of axes and 1,1 is upper
right
(0,0)是 axes 的左下方,
(1,1)是右上方
‘data’
use the coordinate system of the object
being annotated (default)
使用被注释对象的坐标系 统
‘offset points’
Specify an offset (in points) from the xy
value
从 xy 点指定一个偏移量
‘polar’
you can specify theta, r for the
annotation, even in cartesian plots. Note
that if you are using a polar axes, you do
not need to specify polar for the
coordinate system since that is the native
“data” coordinate system.
即使在直角坐标系,也可
以指定(θ,r)的值。如果
使用极坐标,不需要指定
极点
通用箭头属性:
Key Description
width the width of the arrow in points 箭头宽度
frac
the fraction of the arrow length occupied
by the head
箭头尖端(头部)所占比
例
headwidth
the width of the base of the arrow head in
points
箭头尖端的尾部宽度
shrink
oftentimes it is convenient to have the
arrowtip and base a bit away from the
text and point being annotated. If d is the
distance between the text and annotated
point, shrink will shorten the arrow so
the tip and base are shink percent of the
distance d away from the endpoints. ie,
shrink=0.05 is 5%
缩短箭头,以容纳文字。
Shrink=0.05 表示缩短 5%
?kwargs any key for matplotlib.patches.polygon
通用绘图参数,包括
facecolor、alpha 等,可查
询 kwargs 表格。
花式箭头参数:
Key Description
arrowstyle the arrow style 箭头风格
connectionstyle the connection style
relpos default is (0.5, 0.5) 默认(0.5,0.5)
patchA default is bounding box of the text 默认边界框
patchB default is None 默认无
shrinkA default is 2 points 默认 2
shrinkB default is 2 points 默认 2
mutation_scale default is text size (in points) 默认为字体大小
mutation_aspect default is 1. 默认为 1 ? any key for matplotlib.patches.PathPatch
其他参数参见 kwargs
3. matplotlib.pyplot.arrow(x, y, dx, dy, hold=None, **kwargs) 为 axes 添加箭头
arrow(x, y, dx, dy, **kwargs)
绘制指定的箭头从(X,Y)指向(X + Y + dx,dy)。常用的参数:
width(箭头尾部宽度): 浮点数 (默认: 0.001)
length_includes_head(length 值
是否包含 head[箭头尖部]):
[True | False] (默认: False)
head_width(箭头 head 宽度): float(浮点数)或 None (默认: 3*width)
head_length: float(浮点数)或 None (默认: 1.5 * head_width)
shape(箭头形状):
[‘full’('完整的'), ‘left’('左半部分'), ‘right’('右半部分')]
(default: ‘full’)
overhang(箭头尖端形状): float(浮点数) (默认: 0)可以是负值,也可以大于 1
head_starts_at_zero:
[True | False] (默认: False)如果为 True,箭头尖部起
点在坐标 0 点,而 False 则终点在坐标 0 点
pyplot中文手册_Matplotlib中文手册 PDF 下载相关推荐
- 重磅发布!2018互联网女皇报告中文完整版!高清PDF下载!
来源 / 腾讯科技(ID:qqtech) 文 / 腾讯科技运营组 转自:行业报告研究院 关注人工智能并回复女皇,获得完整版报告 据外媒报道,有着"互联网女皇"之称的玛丽-米克尔(M ...
- yaesu7800 维修手册_八重洲FT-7800R中文完整版操作手册(装订版).pdf
您所在位置:网站首页 > 海量文档  > 行业资料 > 家电行业 八重洲FT-7800R中文完整版操作手册(装订版). ...
- sicktim571操作手册_TIM中文操作手册.PDF
TIM 中文操作手册 简介 TIM 系列激光扫描器是一款智能激光型区域扫描传感器. 得益于其小巧轻便的外形及对于激光扫描器而言极低的功耗,非常适合于AGV/RGV/机器 人及其他用于室内设备防撞及区域 ...
- php中文离线手册 chm_XMLHttp中文离线参考手册(CHM版)
XMLHttp中文离线参考手册(CHM版) XMLHttp中文离线参考手册(CHM版),欢迎下载! XmlHttp是一套可以在Javascript.VbScript.Jscript等脚本语言中通过ht ...
- 3750交换机简要配置手册(中文)
3750交换机简要配置手册(中文) 转载于:https://blog.51cto.com/ccccc/105229
- 数据库开发这点事 中文PDF下载
数据库开发这点事 中文PDF下载 转载于:https://www.cnblogs.com/gavinhughhu/archive/2010/04/10/1708765.html
- 【报告分享】中国零售业公私域运营手册暨实施指引.pdf(附下载链接)
省时查报告-专业.及时.全面的行研报告库 省时查方案-专业.及时.全面的营销策划方案库 大家好,我是文文(微信号:sscbg2020),今天给大家分享CCFA和腾讯联合发布的报告<中国零售业公私 ...
- 【报告分享】女性自我保护手册,教你应对10种常见危险处境.pdf(附189页pdf下载链接)...
前两周PUA沸沸扬扬,今天给广大女粉丝分享一篇手册<女性自我保护手册,教你应对10种常见危险处境 .pdf>,该手册由北京大学心理资讯中心和壹心理联合出品,我简单看了一下,手册内容非常丰富 ...
- linux常用命令速查手册PDF下载
Linux常用命令速查手册 需要该PDF文档的朋友扫码关注下方二维码[入门小站],后台回复 「1001」 自取 点击下面标题即可获取对应资料 LeetCode刷题开源手册 LeetCode题解[jav ...
- Chisel 手册(中文part2)
Chisel 手册(中文part2) 作者:Jonathan Bachrach, Huy Vo, Krste Asanović: EECS Department, UC Berkeley 译者:智能 ...
最新文章
- markdown 基本语法
- 查找两个已经排好序的数组的第k大的元素
- uniapp光标自动定义到文本框_word技巧自动生成毕业论文目录
- [mybatis]动态sql_内置参数_parameter_databaseid
- web前端开发之div+css教程精华收集二
- 【华为云技术分享】云图说 | 初识云耀云服务器,打造“极优、极简”的云上体验
- 第十八篇 JS传参数
- 《『若水新闻』客户端开发教程》——18.自定义TextView(1)
- TCP三次握手与四次挥手的过程及原因
- 2019 送给每位读者的几点拙见
- 28.开始画面和异形窗口
- matlab如何看算法时间,【Matlab实现】动态时间规划调整算法(DTW算法)——计算两个序...
- android flutter教程,Android开发 学习Flutter 入门
- Matplotlib库介绍
- 浅谈域名抢注和域名投资
- 傅里叶级数的数学推导及应用价值
- 王之泰201771010131《面向对象程序设计(java)》第七周学习总结
- Android开发 人民币符号(¥)显示不一致的问题
- 【新闻文本分类】(task4)使用gensim训练word2vec
- Markdown,你只需要掌握这几个