snesbitt Claude Sonnet 4.6 commited on
Commit
5a365f5
·
1 Parent(s): 528803c

Move Skew-T level labels to right side

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. python/updraft_forcing/app.py +2 -2
python/updraft_forcing/app.py CHANGED
@@ -904,11 +904,11 @@ def _skewt_figure() -> go.Figure:
904
  fig.add_hline(y=p_lvl, line=dict(color=color, width=0.9, dash="dot"))
905
  y_paper = (np.log10(float(p_lvl)) - _ylo_log) / (_yhi_log - _ylo_log)
906
  fig.add_annotation(
907
- x=0.01, xref="paper",
908
  y=float(np.clip(y_paper, 0.01, 0.99)), yref="paper",
909
  text=f" {label} ",
910
  showarrow=False,
911
- xanchor="left", yanchor="bottom",
912
  font=dict(color=color, size=10),
913
  bgcolor="rgba(10,15,26,0.7)",
914
  )
 
904
  fig.add_hline(y=p_lvl, line=dict(color=color, width=0.9, dash="dot"))
905
  y_paper = (np.log10(float(p_lvl)) - _ylo_log) / (_yhi_log - _ylo_log)
906
  fig.add_annotation(
907
+ x=0.99, xref="paper",
908
  y=float(np.clip(y_paper, 0.01, 0.99)), yref="paper",
909
  text=f" {label} ",
910
  showarrow=False,
911
+ xanchor="right", yanchor="bottom",
912
  font=dict(color=color, size=10),
913
  bgcolor="rgba(10,15,26,0.7)",
914
  )