Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -382,11 +382,11 @@ def plot_ph_week():
|
|
| 382 |
|
| 383 |
# Создаём график
|
| 384 |
plt.figure(figsize=(15, 6))
|
| 385 |
-
plt.plot(dates, ph_values,
|
| 386 |
plt.title(f'График pH за {week_number}-ю неделю')
|
| 387 |
plt.xlabel('Дата и день недели')
|
| 388 |
plt.ylabel('Значение pH')
|
| 389 |
-
plt.xticks(rotation=90)
|
| 390 |
plt.grid(True)
|
| 391 |
plt.gcf().subplots_adjust(bottom=0.4)
|
| 392 |
|
|
|
|
| 382 |
|
| 383 |
# Создаём график
|
| 384 |
plt.figure(figsize=(15, 6))
|
| 385 |
+
plt.plot(dates, ph_values, linestyle='-', color='b') # Убрал маркеры
|
| 386 |
plt.title(f'График pH за {week_number}-ю неделю')
|
| 387 |
plt.xlabel('Дата и день недели')
|
| 388 |
plt.ylabel('Значение pH')
|
| 389 |
+
plt.xticks(rotation=90, fontsize=8) # Уменьшил шрифт на 40%
|
| 390 |
plt.grid(True)
|
| 391 |
plt.gcf().subplots_adjust(bottom=0.4)
|
| 392 |
|