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 ...@@ -33,14 +33,13 @@ def get_relation(self, body_of_water: str): # NB: implement body_of_water
# NB test plot # NB test plot
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.set_aspect(1) ax.set_aspect(1)
# ax.xaxis.set_major_locator(ticker.MultipleLocator(0.2))
for i, polygon in enumerate(tiles['geometry']): # Plot the divided_map
random_color = "#{:06x}".format(random.randint(0, 0xFFFFFF)) tiles.plot(ax=ax, facecolor='none', edgecolor='black')
x, y = polygon.exterior.xy for i, tile in enumerate(tiles.geometry):
ax.plot(x, y, color='blue', alpha=0.5) random_color = "#{:06x}".format(random.randint(0, 0xFFFFFF))
ax.fill(x, y, color=random_color, alpha=1) gpd.GeoSeries(tile).plot(ax=ax, facecolor=random_color, edgecolor='black')
plt.show() 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