tracinginsights commited on
Commit
70a82e3
1 Parent(s): 9603f22

Update pages/Tyre_Degradation.py

Browse files
Files changed (1) hide show
  1. pages/Tyre_Degradation.py +3 -1
pages/Tyre_Degradation.py CHANGED
@@ -6,6 +6,8 @@ YEAR_SELECTED = st.selectbox(
6
  'Select year',
7
  (2022, 2021, 2020, 2019, 2018))
8
 
 
 
9
  RACE_SELECTED = st.selectbox(
10
  'Select Race',
11
  (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
@@ -27,4 +29,4 @@ compounds_used = st.multiselect(
27
  all_compounds_used,
28
  all_compounds_used)
29
 
30
- Tyre_Degradation.plot(DRIVERS_SELECTED,compounds_used, f1session, laps)
 
6
  'Select year',
7
  (2022, 2021, 2020, 2019, 2018))
8
 
9
+ colors_df = Tyre_Degradation.get_colors(YEAR_SELECTED)
10
+
11
  RACE_SELECTED = st.selectbox(
12
  'Select Race',
13
  (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
 
29
  all_compounds_used,
30
  all_compounds_used)
31
 
32
+ Tyre_Degradation.plot(DRIVERS_SELECTED,compounds_used, f1session, laps, colors_df)