Spaces:
Sleeping
Sleeping
Update colors to match Josh's
Browse files
app.py
CHANGED
|
@@ -192,10 +192,10 @@ def compute_classified_data_v3(model, season, term, nonlinear_pos, source_tuple,
|
|
| 192 |
# 6. Saturated colors for readable hover text
|
| 193 |
text_cmap = {
|
| 194 |
'Minimal': 'grey',
|
| 195 |
-
'Conversion': '#
|
| 196 |
-
'Dynamical': '
|
| 197 |
-
'Compounding': '
|
| 198 |
-
'Cancelling': '#
|
| 199 |
}
|
| 200 |
df['Text_Color'] = df['Type'].map(text_cmap)
|
| 201 |
|
|
@@ -223,10 +223,10 @@ class CMIPApp(param.Parameterized):
|
|
| 223 |
# Shared color map for sectors
|
| 224 |
sector_cmap = {
|
| 225 |
'Minimal': 'white',
|
| 226 |
-
'Conversion': '#
|
| 227 |
-
'Dynamical': '#
|
| 228 |
-
'Compounding': '#
|
| 229 |
-
'Cancelling': '#
|
| 230 |
}
|
| 231 |
|
| 232 |
def __init__(self, **params):
|
|
@@ -552,7 +552,7 @@ class CMIPApp(param.Parameterized):
|
|
| 552 |
|
| 553 |
# Add labels
|
| 554 |
labels = [
|
| 555 |
-
hv.Text(0, 0, f
|
| 556 |
hv.Text(90, 0, 'Conversion', fontsize=9),
|
| 557 |
hv.Text(-90, 0, 'Conversion', fontsize=9),
|
| 558 |
hv.Text(0, 90, 'Dynamical', fontsize=9, rotation=90),
|
|
@@ -705,10 +705,10 @@ class CMIPApp(param.Parameterized):
|
|
| 705 |
|
| 706 |
# Define colors including Total
|
| 707 |
bar_cmap = {
|
| 708 |
-
'Conversion': '#
|
| 709 |
-
'Dynamical': '#
|
| 710 |
-
'Non_Linear': '#
|
| 711 |
-
'Total': '#
|
| 712 |
}
|
| 713 |
|
| 714 |
# Create Horizontal Bar Plot
|
|
@@ -786,10 +786,10 @@ class CMIPApp(param.Parameterized):
|
|
| 786 |
|
| 787 |
# Define colors consistent with get_bar_plot
|
| 788 |
bar_cmap = {
|
| 789 |
-
'Conversion': '#
|
| 790 |
-
'Dynamical': '#
|
| 791 |
-
'Non Linear': '#
|
| 792 |
-
'Total': '#
|
| 793 |
}
|
| 794 |
|
| 795 |
tabs = []
|
|
|
|
| 192 |
# 6. Saturated colors for readable hover text
|
| 193 |
text_cmap = {
|
| 194 |
'Minimal': 'grey',
|
| 195 |
+
'Conversion': '#B8860B', # Dark Gold
|
| 196 |
+
'Dynamical': '#0277BD', # Dark Blue
|
| 197 |
+
'Compounding': '#7B1FA2', # Dark Purple
|
| 198 |
+
'Cancelling': '#E65100' # Dark Orange
|
| 199 |
}
|
| 200 |
df['Text_Color'] = df['Type'].map(text_cmap)
|
| 201 |
|
|
|
|
| 223 |
# Shared color map for sectors
|
| 224 |
sector_cmap = {
|
| 225 |
'Minimal': 'white',
|
| 226 |
+
'Conversion': '#FDFD96', # Pale Yellow
|
| 227 |
+
'Dynamical': '#ADD8E6', # Pale Blue
|
| 228 |
+
'Compounding': '#E1BEE7', # Pale Purple
|
| 229 |
+
'Cancelling': '#FFE0B2' # Pale Orange
|
| 230 |
}
|
| 231 |
|
| 232 |
def __init__(self, **params):
|
|
|
|
| 552 |
|
| 553 |
# Add labels
|
| 554 |
labels = [
|
| 555 |
+
hv.Text(0, 0, f"Minimal {self.term.split(' ')[0]}", fontsize=8),
|
| 556 |
hv.Text(90, 0, 'Conversion', fontsize=9),
|
| 557 |
hv.Text(-90, 0, 'Conversion', fontsize=9),
|
| 558 |
hv.Text(0, 90, 'Dynamical', fontsize=9, rotation=90),
|
|
|
|
| 705 |
|
| 706 |
# Define colors including Total
|
| 707 |
bar_cmap = {
|
| 708 |
+
'Conversion': '#FDFD96', # Pale Yellow
|
| 709 |
+
'Dynamical': '#ADD8E6', # Pale Blue
|
| 710 |
+
'Non_Linear': '#81C784', # Paler Green
|
| 711 |
+
'Total': '#EEEEEE' # Very light grey
|
| 712 |
}
|
| 713 |
|
| 714 |
# Create Horizontal Bar Plot
|
|
|
|
| 786 |
|
| 787 |
# Define colors consistent with get_bar_plot
|
| 788 |
bar_cmap = {
|
| 789 |
+
'Conversion': '#FDFD96',
|
| 790 |
+
'Dynamical': '#ADD8E6',
|
| 791 |
+
'Non Linear': '#81C784',
|
| 792 |
+
'Total': '#EEEEEE'
|
| 793 |
}
|
| 794 |
|
| 795 |
tabs = []
|