参考:Python shapely 线缓冲区分析与显示
from shapely.geometry import Point, Polygon, LineString import matplotlib.pyplot as plt line = LineString([(0.1, 0.1), (2, 3)]) x1,y1=line.xy plt.figure() plt.plot(y1,x1) plt.show()