I'm using shapely
within Python. I created a polygon using coordinates; however, when I plot it, it creates random straight lines between points where it should not.
Here is what it looks like:
And here is what I want the perimeter to look like (without the fill):
Here's the code I'm using to create the polygon and plot it:
poly_coords = coords[['lon','lat']]
poly_coords = poly_coords.values.tolist()
poly = Polygon(poly_coords)
x,y = poly.exterior.xy
plt.plot(x,y)
Is there something I'm missing that's causing the random lines between points to be created?