Skip to content
Snippets Groups Projects
Commit 966538a1 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

fix: working divided circle

parent cebda2a9
No related branches found
No related tags found
1 merge request!6Clhp map
No preview for this file type
......@@ -33,14 +33,13 @@ def get_relation(self, body_of_water: str): # NB: implement body_of_water
# NB test plot
fig, ax = plt.subplots()
ax.set_aspect(1)
# ax.xaxis.set_major_locator(ticker.MultipleLocator(0.2))
for i, polygon in enumerate(tiles['geometry']):
random_color = "#{:06x}".format(random.randint(0, 0xFFFFFF))
# Plot the divided_map
tiles.plot(ax=ax, facecolor='none', edgecolor='black')
x, y = polygon.exterior.xy
ax.plot(x, y, color='blue', alpha=0.5)
ax.fill(x, y, color=random_color, alpha=1)
for i, tile in enumerate(tiles.geometry):
random_color = "#{:06x}".format(random.randint(0, 0xFFFFFF))
gpd.GeoSeries(tile).plot(ax=ax, facecolor=random_color, edgecolor='black')
plt.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment