【发布时间】:2020-02-08 04:43:25
【问题描述】:
我正在尝试了解 Shapely 的工作原理。
我可以用下面的代码画一条简单的线:
import matplotlib.pyplot as plt
A = Point(0,0)
B = Point(1,1)
AB = LineString([A,B])
plt.plot(AB)
但是当我改变坐标时:
A = Point(1,0)
B = Point(3,4)
AB = LineString([A,B])
plt.plot(AB)
Shapely 决定画两条线,这是我不明白的行为。
使用 Shapely 1.7.0
【问题讨论】:
标签: python matplotlib shapely