Matplotlib系列之LineStyles及Markers

本文主要记录Matplotlib中的曲线、点号的样式,便于后续查询。

Line Styles

下面列举了曲线的样式:

标记 描述 显示
- solid line
-- dashed line
-. dash-dot line
: dotted line
. points
o circle
^ triangle up
v triangle down
< triangle left
> triangle right
s square
+ plus
x cross
D diamond
d thin diamond
1 tripod down
2 tripod up
3 tripod left
4 tripod right
h hexagon
H rotated hexagon
p pentagon
| vertical line
_ horizontal line

Markers

下面列举了点号的样式:

标记 描述 显示
0 tick left
1 tick right
2 tick up
3 tick down
4 caret left
5 caret right
6 caret up
7 caret down
o circle
D diamond
h hexagon 1
H hexagon 2
_ horizontal line
1 tripod down
2 tripod up
3 tripod left
4 tripod right
8 octagon
p pentagon
^ triangle up
v triangle down
< triangle left
> triangle right
d thin diamond
, pixel
+ plus
. point
s square
* star
| vertical line
x cross
r'$\sqrt{2}$' any latex expression

----------- 本文结束啦感谢您阅读 -----------

赞赏一杯咖啡

欢迎关注我的其它发布渠道