From 848d2d87853337380a3f1d9b6d2d766ec23f0c59 Mon Sep 17 00:00:00 2001 From: Felix Meier Date: Sat, 23 Oct 2021 18:08:43 +0200 Subject: [PATCH] fix to show the title with more than one subplot --- freqtrade/plot/plotting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 1b4914b0a..bcfae89c6 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -432,8 +432,7 @@ def generate_candlestick_graph(pair: str, data: pd.DataFrame, trades: pd.DataFra fig['layout']['yaxis1'].update(title='Price') fig['layout']['yaxis3'].update(title='Volume') for i, name in enumerate(plot_config['subplots']): - fig['layout'][f'yaxis{5 + i }'].update(title=name) - # ToDo: if more then one subplot is used, the title is not shown + fig['layout'][f'yaxis{5 + i*2 }'].update(title=name) fig['layout']['xaxis']['rangeslider'].update(visible=False) fig.update_layout(modebar_add=["v1hovermode", "toggleSpikeLines"])