From 1d37b726c2c050ee335d162ae46389f4432fe6a7 Mon Sep 17 00:00:00 2001 From: Sheng Lundquist Date: Fri, 15 Nov 2024 13:53:56 +0700 Subject: [PATCH] Changing order of share price plot in dashboard --- src/agent0/chainsync/streamlit/Dashboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agent0/chainsync/streamlit/Dashboard.py b/src/agent0/chainsync/streamlit/Dashboard.py index 079525d9b..39f1eb9df 100644 --- a/src/agent0/chainsync/streamlit/Dashboard.py +++ b/src/agent0/chainsync/streamlit/Dashboard.py @@ -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: @@ -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")