我使用下面的代码在图上绘制交点,然后直观地检查交点以返回代码并对可行性区域进行着色。在
有没有比简单地画线和从图上读取交点更好的方法来找到可行区域?在
# Filling a polygon locating the corner points
# Then let Matplotlib fill within these points
x= [0.0, 0.0, 6.67,5.0]
y= [0.0, 4.0, .67, 0.0]
fill(x,y)
show()
完整代码示例:
^{pr2}$
Tags:
如果您只想绘制可行性区域,可以执行以下操作:
相关问题 更多 >
编程相关推荐