0
点赞
收藏
分享

微信扫一扫

Matplotlib marker参数样式大全

乱世小白 2022-04-13 阅读 60
python

一、样式大全 

标记类型标记样式效果
o实心圆 
.
,像素点 
+加号 
*星号
x乘号
X填充乘号
s正方形
D胖菱形
d瘦菱形
p五边形
h六边形
H六边形
8八边形
^上三角
v下三角
>左三角
<右三角
1上三叉
2下三叉
3左三叉
4右三叉
|竖线
_横线
$\heartsuit$空心
$\u266B$音符
$\clubsuit$三叶草
$\spadesuit$桃花
$\diamondsuit$空心菱形
$\\bigtriangleup$空心上三角形
$\\bigtriangledown$空心下三角形
$\\bigodot$圆点
$\\bigotimes$圆叉
$\\imath$斜线
$\\bowtie$蝴蝶结
$\oslash$圆斜线
$\ast$雪花
$\\times$
$\circ$圆圈
$\\bullet$
$\star$五角星
$\Xi$
$\Phi$
$\$$
$\#$井号
$\%$百分号
$\S$双S

 二、实践运用

 

import matplotlib.pyplot as plt
import numpy as np

x=np.arange(0,10)
y=np.sin(x)

plt.scatter(x,y,color='r',marker='$\heartsuit$',s=1500,alpha=0.1)
plt.show()

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

举报

相关推荐

HTML文本框样式大全

0 条评论