提交 6fb84f12 编写于 作者: 盼小辉丶's avatar 盼小辉丶

上传新文件

上级 0403694a
import numpy as np
from scipy.spatial import ConvexHull
import matplotlib.pyplot as plt
points = np.array([[2, 4], [3, 4], [3, 0], [2, 2], [4, 1], [5, 5], [6, 7]])
hull_points = ConvexHull(points).coplanar
plt.scatter(points[:,0 ], points[:,1])
for simplex in hull_points:
plt.plot(points[simplex,0], points[simplex,1 ], 'm-')
plt.show()
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册