Plot-profit should have subtitles per subplot

This commit is contained in:
Matthias 2019-08-23 20:42:59 +02:00
parent 395414ccde
commit d711b8c0e9

View File

@ -274,7 +274,8 @@ def generate_profit_graph(pairs: str, tickers: Dict[str, pd.DataFrame],
name='Avg close price',
)
fig = make_subplots(rows=3, cols=1, shared_xaxes=True, row_width=[1, 1, 1])
fig = make_subplots(rows=3, cols=1, shared_xaxes=True, row_width=[1, 1, 1],
subplot_titles=["AVG Close Price", "Combined Profit", "Protit per pair"])
fig['layout'].update(title="Profit plot")
fig.add_trace(avgclose, 1, 1)