mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 13:44:16 +00:00
Added title to chart
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user