Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -511,17 +511,17 @@ def track_plot(df, include_actual=True, pred_col="GR_Pred", actual_col="GR"):
|
|
| 511 |
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 512 |
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 513 |
)
|
| 514 |
-
#
|
| 515 |
fig.update_yaxes(
|
| 516 |
title_text=ylab,
|
| 517 |
-
autorange="reversed",
|
| 518 |
title_font=dict(size=20, family=BOLD_FONT, color="#000"),
|
| 519 |
tickfont=dict(size=15, family=BOLD_FONT, color="#000"),
|
| 520 |
-
autorange="reversed",
|
| 521 |
ticks="outside",
|
| 522 |
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 523 |
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 524 |
)
|
|
|
|
| 525 |
return fig
|
| 526 |
|
| 527 |
|
|
|
|
| 511 |
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 512 |
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 513 |
)
|
| 514 |
+
# Reverse y-axis universally (top=shallow, bottom=deep)
|
| 515 |
fig.update_yaxes(
|
| 516 |
title_text=ylab,
|
|
|
|
| 517 |
title_font=dict(size=20, family=BOLD_FONT, color="#000"),
|
| 518 |
tickfont=dict(size=15, family=BOLD_FONT, color="#000"),
|
| 519 |
+
autorange="reversed",
|
| 520 |
ticks="outside",
|
| 521 |
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 522 |
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 523 |
)
|
| 524 |
+
|
| 525 |
return fig
|
| 526 |
|
| 527 |
|