没有合适的资源?快使用搜索试试~ 我知道了~
首页Python matplotlib通过plt.scatter画空心圆标记出特定的点方法
在用python画散点图的时候想标记出特定的点,比如在某些点的外围加个空心圆,一样可以通过plt.scatter实现 import matplotlib.pyplot as plt x = [[1, 3], [2, 5]] y = [[4, 7], [6, 3]] for i in range(len(x)): plt.plot(x[i], y[i], color='r') plt.scatter(x[i], y[i], color='b') plt.scatter(x[i], y[i], color='', marker='o', edgecolors='g', s=200)
资源详情
资源评论
资源推荐

Python matplotlib通过通过plt.scatter画空心圆标记出特定的点方画空心圆标记出特定的点方
法法
在用python画散点图的时候想标记出特定的点,比如在某些点的外围加个空心圆,一样可以通过plt.scatter实现
import matplotlib.pyplot as plt
x = [[1, 3], [2, 5]] y = [[4, 7], [6, 3]]
for i in range(len(x)):
plt.plot(x[i], y[i], color='r')
plt.scatter(x[i], y[i], color='b')
plt.scatter(x[i], y[i], color='', marker='o', edgecolors='g', s=200) # 把 corlor 设置为空,通过edgecolors来控制颜色
效果图效果图
以上这篇Python matplotlib通过plt.scatter画空心圆标记出特定的点方法就是小编分享给大家的全部内容了,希望能给大家一个
参考,也希望大家多多支持软件开发网。
您可能感兴趣的文章您可能感兴趣的文章:Python编程深度学习绘图库之matplotlibPython matplotlib的使用并自定义colormap的方法python使用
matplotlib绘制热图python使用matplotlib模块绘制多条折线图、散点图python使用Matplotlib绘制分段函数python使用Matplotlib
画条形图Python使用matplotlib绘制三维图形示例Python数据分析matplotlib设置多个子图的间距方法Python使用matplotlib和
pandas实现的画图操作【经典示例】Python关于excel和shp的使用在matplotlib


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0