Spaces:
Running
Running
Update app.py
Browse files
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(legend_x=1, legend_y=0)
|
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 |
+
fig.update_layout(legend_x=1, legend_y=0, title = {'x':.5})
|
31 |
return fig
|
32 |
|
33 |
# app = gradio.Interface(plot_timeline,
|