rguilcas commited on
Commit
79bbca8
·
verified ·
1 Parent(s): d1ecfaa

Update colors to match Josh's

Browse files
Files changed (1) hide show
  1. app.py +17 -17
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': '#b8860b', # DarkGoldenRod
196
- 'Dynamical': 'blue',
197
- 'Compounding': 'red',
198
- 'Cancelling': '#9D00FF'
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': '#fdfd96',
227
- 'Dynamical': '#add8e6',
228
- 'Compounding': '#ffcccb',
229
- 'Cancelling': '#d0bbff'
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'minimal {self.term}', 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,10 +705,10 @@ class CMIPApp(param.Parameterized):
705
 
706
  # Define colors including Total
707
  bar_cmap = {
708
- 'Conversion': '#1f77b4', # standardized blue
709
- 'Dynamical': '#ff7f0e', # standardized orange
710
- 'Non_Linear': '#2ca02c', # standardized green
711
- 'Total': '#7f7f7f' # grey for 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': '#1f77b4',
790
- 'Dynamical': '#ff7f0e',
791
- 'Non Linear': '#2ca02c',
792
- 'Total': '#7f7f7f'
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 = []