cboettig commited on
Commit
918728f
·
unverified ·
1 Parent(s): 364fd4b
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -19,6 +19,17 @@ import ibis
19
  from ibis import _
20
  import ibis.selectors as s
21
 
 
 
 
 
 
 
 
 
 
 
 
22
  st.set_page_config(layout="wide", page_title="Protected Areas Explorer", page_icon=":globe:")
23
 
24
  '''
@@ -42,10 +53,6 @@ charts summarize the total protected area and mean richness and mean RSR within
42
  '''
43
  # -
44
 
45
- private_color = "#850101" # red
46
- tribal_color = "#BF40BF" # purple
47
- mixed_color = "#005a00" # green
48
- public_color = "#3388ff" # blue
49
 
50
 
51
  # +
@@ -71,8 +78,8 @@ with st.sidebar:
71
 
72
  "### Threshold selector"
73
 
74
- low = st.slider("Red when richness is less than", 0, 30, 2)
75
- high = st.slider("Green for richness larger than", 0, 30, 3)
76
  "missing data in grey. in-between values in blue"
77
 
78
 
@@ -200,14 +207,6 @@ r = {
200
 
201
 
202
 
203
- # +
204
-
205
-
206
-
207
- # -
208
-
209
-
210
-
211
  # +
212
  import leafmap.foliumap as leafmap
213
 
 
19
  from ibis import _
20
  import ibis.selectors as s
21
 
22
+ # defaults
23
+ private_color = "#DE881E" # orange #"#850101" # red
24
+ tribal_color = "#BF40BF" # purple
25
+ mixed_color = "#005a00" # green
26
+ public_color = "#3388ff" # blue
27
+
28
+ low = 2
29
+ high = 3
30
+
31
+ # +
32
+
33
  st.set_page_config(layout="wide", page_title="Protected Areas Explorer", page_icon=":globe:")
34
 
35
  '''
 
53
  '''
54
  # -
55
 
 
 
 
 
56
 
57
 
58
  # +
 
78
 
79
  "### Threshold selector"
80
 
81
+ low = st.slider("Red when richness is less than", 0, 30, low)
82
+ high = st.slider("Green for richness larger than", 0, 30, high)
83
  "missing data in grey. in-between values in blue"
84
 
85
 
 
207
 
208
 
209
 
 
 
 
 
 
 
 
 
210
  # +
211
  import leafmap.foliumap as leafmap
212