首页 > 解决方案 > geopandas 在现有图形上绘制多边形

问题描述

我有一个数据框图,我想继续绘制一个多边形,但我收到了消息Figure size 432x288 with 0 Axes

from shapely.geometry import Polygon

ax1 = stopvu_count.plot.scatter(x='lon', y= 'lat')
polygonY = Polygon([(37.991920,23.731388),
                    (37.991771,23.731337),
                    (37.991181,23.735570),
                    ])
p1 = gpd.GeoSeries(polygonY)
p1.plot(facecolor="none",edgecolor='black',ax=ax1)
plt.show()

标签: geopandas

解决方案


推荐阅读