geopandas - 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()
解决方案
推荐阅读
- php - CakePHP 多重排序和分页
- android - 颤振资产错误:图像资源服务捕获的异常
- javascript - 如何在php变量中运行javascript变量值
- spring-mvc - 使用一个 Spring MVC 控制器类处理两个不同的提交按钮请求
- python - Kivy ScreenManager 打破了 BoxLayout
- sql - SQL 选择不同的日期和 ID 计数
- karate - 如何在空手道的特征线中传递变量值?
- csv - 如何在 PySpark 中使用 read.csv 跳过多行
- python - Finding top features with SGD classifier & GridsearchCV
- c# - C#方法:如何进行两组重载?编辑:参数,而不是重载