From 166f601c9047b76623d5a697887e921852574f2d Mon Sep 17 00:00:00 2001 From: DJ Nieto Date: Fri, 16 Apr 2021 08:05:02 -0600 Subject: [PATCH] Added title to chart --- gamestonk_terminal/oanda/oanda_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamestonk_terminal/oanda/oanda_functions.py b/gamestonk_terminal/oanda/oanda_functions.py index c2f37a52fb3..70b394b03b6 100644 --- a/gamestonk_terminal/oanda/oanda_functions.py +++ b/gamestonk_terminal/oanda/oanda_functions.py @@ -349,7 +349,8 @@ def show_candles(accountID, instrument, other_args: List[str]): df = pd.read_csv(".candles.csv", index_col=0) df.index = pd.to_datetime(df.index) df.columns = ['Open', 'High', 'Low', 'Close', 'Volume'] - mpf.plot(df, type="candle", style="charles", volume=True) + mpf.plot(df, type="candle", style="charles", volume=True, + title=f"{instrument} {ns_parser.granularity}") except Exception as e: print(e) except NameError as e: