Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,11 +67,11 @@ def predict_and_plot(week4, week3, week2, week1):
|
|
67 |
|
68 |
plt.figure(figsize=(10, 6))
|
69 |
plt.plot(weeks, actual_values, marker='o', label='Total Kilometers')
|
70 |
-
plt.set_ylim(bottom=0)
|
71 |
plt.axvline(x='Predicted Week', color='red', linestyle='--', label='Predicted Week')
|
72 |
plt.title('Total Kilometers for Last 4 Weeks and Prediction')
|
73 |
plt.xlabel('Weeks')
|
74 |
plt.ylabel('Total Kilometers')
|
|
|
75 |
plt.grid()
|
76 |
plt.tight_layout()
|
77 |
plt.legend()
|
|
|
67 |
|
68 |
plt.figure(figsize=(10, 6))
|
69 |
plt.plot(weeks, actual_values, marker='o', label='Total Kilometers')
|
|
|
70 |
plt.axvline(x='Predicted Week', color='red', linestyle='--', label='Predicted Week')
|
71 |
plt.title('Total Kilometers for Last 4 Weeks and Prediction')
|
72 |
plt.xlabel('Weeks')
|
73 |
plt.ylabel('Total Kilometers')
|
74 |
+
plt.ylim(bottom=0)
|
75 |
plt.grid()
|
76 |
plt.tight_layout()
|
77 |
plt.legend()
|