UCS2014 commited on
Commit
f44f6f2
·
verified ·
1 Parent(s): 51e5ec8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # The key change: reverse y-axis universally
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", # <-- ensures top=shallow, bottom=deep
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