Skip to content

Commit

Permalink
Changing order of share price plot in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Nov 16, 2024
1 parent 3dde0e4 commit 1d37b72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agent0/chainsync/streamlit/Dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

main_fig = mpf.figure(style="mike", figsize=(10, 10))
# matplotlib doesn't play nice with types
(ax_ohlcv, ax_fixed_rate, ax_vault_share_price, ax_positions) = main_fig.subplots(4, 1, sharex=True) # type: ignore
(ax_ohlcv, ax_fixed_rate, ax_positions, ax_share_price) = main_fig.subplots(4, 1, sharex=True) # type: ignore

while True:
if selected_hyperdrive_address is not None:
Expand All @@ -76,13 +76,13 @@
# Clears all axes
ax_ohlcv.clear()
ax_fixed_rate.clear()
ax_vault_share_price.clear()
ax_positions.clear()
ax_share_price.clear()

plot_ohlcv(data_dfs["ohlcv"], ax_ohlcv)
plot_rates(data_dfs["fixed_rate"], data_dfs["variable_rate"], ax_fixed_rate)
plot_share_price(data_dfs["vault_share_price"], ax_vault_share_price)
plot_outstanding_positions(data_dfs["outstanding_positions"], ax_positions)
plot_share_price(data_dfs["vault_share_price"], ax_share_price)

ax_ohlcv.tick_params(axis="both", which="both")
ax_fixed_rate.tick_params(axis="both", which="both")
Expand Down

0 comments on commit 1d37b72

Please sign in to comment.