FDSRashid commited on
Commit
81df485
·
1 Parent(s): dbc2f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def plot_timeline(yaxis, citi = ['المدينه', 'بغداد', 'كوفة', 'ب
27
  raise gr.error('Min Year Cannot be Bigger than Max Year!')
28
  filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
29
  fig = px.line(data_frame = filtered, x = 'Year', y = yaxis, title = f"{yaxis} per Year", color = 'City', template = 'plotly_dark' )
30
- fig.update_layout(title_font_color = 'red', title_x = .5)
31
  return fig
32
 
33
  # app = gradio.Interface(plot_timeline,
 
27
  raise gr.error('Min Year Cannot be Bigger than Max Year!')
28
  filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
29
  fig = px.line(data_frame = filtered, x = 'Year', y = yaxis, title = f"{yaxis} per Year", color = 'City', template = 'plotly_dark' )
30
+
31
  return fig
32
 
33
  # app = gradio.Interface(plot_timeline,