matlab绘制散点图

 

 

import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 3, 2, 4, 2]

plt.scatter(x, y)
plt.title('Scatter Plot Example')  # 添加标题
plt.xlabel('X Axis')  # 添加X轴标签
plt.ylabel('Y Axis')  # 添加Y轴标签
plt.show()

 

 

####################

posted @ 2024-07-16 11:32  西北逍遥  阅读(2)  评论(0编辑  收藏  举报