broadcast-areas: simple feature plots show points

Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
Toby Lorne
2020-07-29 10:39:28 +01:00
parent e21d424f97
commit 22cf63a440

View File

@@ -75,6 +75,22 @@ def main():
alpha=0.25,
)
ax.scatter(
[
p[0]
for f in simple_features
for geom in (f.geoms if hasattr(f, 'geoms') else [f])
for p in geom.exterior.coords
],
[
p[1]
for f in simple_features
for geom in (f.geoms if hasattr(f, 'geoms') else [f])
for p in geom.exterior.coords
],
transform=ccrs.PlateCarree(),
)
plt.show()