psalama commited on
Commit
97d5be8
·
1 Parent(s): 1aeaf66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,7 +97,7 @@ def get_max_extent(*gdfs):
97
  def create_plot(filename, extent, *gdfs): # takes in unlimited number of gdfs
98
  fig, ax = plt.subplots(figsize=(6, 4)) #Sets image size by width & height (in inches)
99
 
100
- colors = ['blue', 'red', 'green', 'purple', 'orange', '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
@@ -181,6 +181,7 @@ iface = gr.Interface(
181
  ],
182
  examples=[
183
  ["files/building4test.geojson", "Parks Properties", 4.3, 200],
 
184
  ],
185
  title="Shadow Proximity",
186
  description="Upload proposed building footprints in a GeoJSON file and select a numeric value to get the building proximity prediction.",
 
97
  def create_plot(filename, extent, *gdfs): # takes in unlimited number of gdfs
98
  fig, ax = plt.subplots(figsize=(6, 4)) #Sets image size by width & height (in inches)
99
 
100
+ colors = ['tan', 'mistyrose', 'mediumseagreen', 'thistle', 'orange', '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
 
181
  ],
182
  examples=[
183
  ["files/building4test.geojson", "Parks Properties", 4.3, 200],
184
+ ["files/building4test.geojson", "Park Zones", 4.3, 900],
185
  ],
186
  title="Shadow Proximity",
187
  description="Upload proposed building footprints in a GeoJSON file and select a numeric value to get the building proximity prediction.",