python角点的类型_Python | 点图中的点类型

本文介绍了Python中用于数据可视化的matplotlib库中不同类型的点,包括正方形、三角形、短划线和星形点,并提供了相应的颜色代码示例。通过使用这些不同类型的点,可以增强图形的可视化效果。
摘要由CSDN通过智能技术生成

python角点的类型

While comparing the number of plots in a figure, color limits us to very few numbers. Therefore, mathplotlib.pyplot has provided different types of dots (for instance shown in the figure) which allow us to move one step forward in efficacious visualization.

在比较图中的图形数量时,颜色将我们限制为很少的数字。 因此,mathplotlib.pyplot提供了不同类型的点 (例如,图中所示),这使我们在有效的可视化方面向前迈进了一步。

1)颜色代码为绿色,蓝色,黄色,红色的正方形点 (1) Square points with color code Green, Blue, Yellow, Red)

Syntax:

句法:

plt.plot(x1,y1,'**',x2,y2,'**',x3,y3,'**')

_s - s if keyword for square type points

_s - s如果是方形点的关键字

Types of Dot in Dot Plot (1)

2)颜色代码为绿色,蓝色,红色,黄色的三角形点 (2) Triangle Points with color code Green, Blue, Red, Yellow

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值