Spaces:
Sleeping
Sleeping
Update src/pred_plot.py
Browse files- src/pred_plot.py +2 -2
src/pred_plot.py
CHANGED
@@ -240,7 +240,7 @@ def pred_bars(my_date_picker_single, final_table):
|
|
240 |
bar_day = make_subplots(shared_yaxes="all", rows=2, cols=2, start_cell="bottom-left", subplot_titles=("Johor-Tuas",
|
241 |
"Tuas-Johor",
|
242 |
"Johor-Woodlands",
|
243 |
-
"Johor
|
244 |
f1 = df_filter[df_filter['view']=='Johor-Tuas']
|
245 |
c1 = pd.Series(f1['cat']).map(color_map)
|
246 |
bar_day.add_trace(go.Bar(x=f1['hour'], y=f1['vehicle'], name='Johor-Tuas', showlegend=False, marker={'color':c1}),
|
@@ -256,7 +256,7 @@ def pred_bars(my_date_picker_single, final_table):
|
|
256 |
row=2, col=1)
|
257 |
f4 = df_filter[df_filter['view']=='Woodlands-Johor']
|
258 |
c4 = pd.Series(f4['cat']).map(color_map)
|
259 |
-
bar_day.add_trace(go.Bar(x=f4['hour'], y=f4['vehicle'], name='Johor
|
260 |
row=2, col=2)
|
261 |
|
262 |
val_d = date.today().strftime("%d %B, %Y")
|
|
|
240 |
bar_day = make_subplots(shared_yaxes="all", rows=2, cols=2, start_cell="bottom-left", subplot_titles=("Johor-Tuas",
|
241 |
"Tuas-Johor",
|
242 |
"Johor-Woodlands",
|
243 |
+
"Woodlands-Johor"))
|
244 |
f1 = df_filter[df_filter['view']=='Johor-Tuas']
|
245 |
c1 = pd.Series(f1['cat']).map(color_map)
|
246 |
bar_day.add_trace(go.Bar(x=f1['hour'], y=f1['vehicle'], name='Johor-Tuas', showlegend=False, marker={'color':c1}),
|
|
|
256 |
row=2, col=1)
|
257 |
f4 = df_filter[df_filter['view']=='Woodlands-Johor']
|
258 |
c4 = pd.Series(f4['cat']).map(color_map)
|
259 |
+
bar_day.add_trace(go.Bar(x=f4['hour'], y=f4['vehicle'], name='Woodlands-Johor', showlegend=False, marker={'color':c4}),
|
260 |
row=2, col=2)
|
261 |
|
262 |
val_d = date.today().strftime("%d %B, %Y")
|