现有10个点的坐标35354149351755455520153025302050104355603060使用python代码画出坐标图
可以使用matplotlib库来画出坐标图,具体代码如下:
import matplotlib.pyplot as plt
# 定义坐标点
points = [(35, 35), (41, 49), (35, 17), (55, 45), (55, 20),
(15, 30), (25, 30), (20, 50), (10, 43), (55, 60), (30, 60)]
# 提取横纵坐标
x = [p[0] for p in points]
y = [p[1] for p in points]
# 绘制散点图
plt.scatter(x, y)
# 设置坐标轴范围
plt.xlim(0, 60)
plt.ylim(0, 70)
# 添加坐标轴标签
plt.xlabel("x axis")
plt.ylabel("y axis")
# 显示图形
plt.show()
运行后可以得到如下的坐标图:

原文地址: https://www.cveoy.top/t/topic/fIVM 著作权归作者所有。请勿转载和采集!