matplotlib 学习笔记02:marker标记详解

本文内容来自于matplotlib官网:matplotlib官网markers资料

 

This module contains functions to handle markers. Used by both the marker functionality of plot and scatter.

All possible markers are defined here:

该模块包含处理标记的功能。 用于plot和scatter的这两个模块的标记功能。

这里定义了所有可能的标记: 

markerdescription
"."point
","pixel
"o"circle
"v"triangle_down
"^"triangle_up
"<"triangle_left
">"triangle_right
"1"tri_down
"2"tri_up
"3"tri_left
"4"tri_right
"8"octagon
"s"square
"p"pentagon
"P"plus (filled)
"*"star
"h"hexagon1
"H"hexagon2
"+"plus
"x"x
"X"x (filled)
"D"diamond
"d"thin_diamond
"|"vline
"_"hline
TICKLEFTtickleft
TICKRIGHTtickright
TICKUPtickup
TICKDOWNtickdown
CARETLEFTcaretleft (centered at tip)
CARETRIGHTcaretright (centered at tip)
CARETUPcaretup (centered at tip)
CARETDOWNcaretdown (centered at tip)
CARETLEFTBASEcaretleft (centered at base)
CARETRIGHTBASEcaretright (centered at base)
CARETUPBASEcaretup (centered at base)
"None"" or ""nothing
'$...$'render the string using mathtext.
vertsa list of (x, y) pairs used for Path vertices. The center of the marker is located at (0,0) and the size is normalized.
pathPath instance.
(numsidesstyleangle)

The marker can also be a tuple (numsidesstyleangle), which will create a custom, regular symbol.

numsides:
the number of sides
style:

the style of the regular symbol:

0
a regular polygon
1
a star-like symbol
2
an asterisk
3
a circle ( numsides and  angle is ignored)
angle:
the angle of rotation of the symbol

 

For backward compatibility, the form (verts, 0) is also accepted, but it is equivalent to just verts for giving a raw set of vertices that define the shape.

None is the default which means 'nothing', however this table is referred to from other docs for the valid inputs from marker inputs and in those cases None still means 'default'.

为了向后兼容,表单(verts,0)也被接受,但它只相当于verts,用于给出一组定义形状的原始顶点。

无默认值表示“无”,但是此表从其他文档中引用来自标记输入的有效输入,在这些情况下,“无”仍表示“默认”。

 

 

作者:biyoulin

出处:http://www.cnblogs.com/biyoulin/

版权声明:本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 

作者:biyoulin 出处:http://www.cnblogs.com/biyoulin/ 版权声明:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

转载于:https://www.cnblogs.com/biyoulin/p/9574601.html

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值