Update app.py
Browse files
app.py
CHANGED
@@ -95,9 +95,9 @@ def get_max_extent(*gdfs): # takes in unlimited number of gdfs and calculates ma
|
|
95 |
return minx, miny, maxx, maxy
|
96 |
|
97 |
def create_plot(filename, extent, *gdfs): # takes in unlimited number of gdfs
|
98 |
-
fig, ax = plt.subplots(figsize=(
|
99 |
|
100 |
-
colors = ['tan', 'mediumseagreen', 'thistle', 'lightcoral', '
|
101 |
|
102 |
for idx, gdf in enumerate(gdfs):
|
103 |
gdf.plot(ax=ax, color=colors[idx % len(colors)]) # Cycle through colors
|
|
|
95 |
return minx, miny, maxx, maxy
|
96 |
|
97 |
def create_plot(filename, extent, *gdfs): # takes in unlimited number of gdfs
|
98 |
+
fig, ax = plt.subplots(figsize=(10, 8)) #Sets image size by width & height (in inches)
|
99 |
|
100 |
+
colors = ['tan', 'mediumseagreen', 'thistle', 'lightcoral', 'sienna', 'yellow'] # Extend/improve this list as needed
|
101 |
|
102 |
for idx, gdf in enumerate(gdfs):
|
103 |
gdf.plot(ax=ax, color=colors[idx % len(colors)]) # Cycle through colors
|