nesticot commited on
Commit
e03f991
·
1 Parent(s): 10ccea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ import matplotlib.colors
79
  #norm=plt.Normalize(-2,2)
80
  #co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#ffffff","#F0E442"])
81
  co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#56B4E9","#FFFFFF","#F0E442"])
82
- co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#FFFFFF","#56B4E9"])
83
 
84
 
85
 
@@ -443,7 +443,7 @@ def server(input, output, session):
443
  'L'+str(n_2)+' PP%': '{:.0%}',
444
  'L'+str(n_3)+' PP%': '{:.0%}',
445
  'Roster%': '{:.0%}',
446
- },).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]).hide_index().background_gradient(cmap=co,vmin=0, subset=[x for x in cols if x.endswith('PP%')])
447
 
448
  return df_style_bang
449
 
 
79
  #norm=plt.Normalize(-2,2)
80
  #co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#ffffff","#F0E442"])
81
  co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#56B4E9","#FFFFFF","#F0E442"])
82
+ #co = matplotlib.colors.LinearSegmentedColormap.from_list("", ["#FFFFFF","#56B4E9"])
83
 
84
 
85
 
 
443
  'L'+str(n_2)+' PP%': '{:.0%}',
444
  'L'+str(n_3)+' PP%': '{:.0%}',
445
  'Roster%': '{:.0%}',
446
+ },).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]).hide_index().background_gradient(cmap=co,vmin=0,vmax=1, subset=[x for x in cols if x.endswith('PP%')])
447
 
448
  return df_style_bang
449