Explicitly given indicators should override plot_config

This commit is contained in:
Matthias 2020-01-05 19:50:21 +01:00
parent 53499e01de
commit d0ccfa1925
1 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,12 @@ def create_plotconfig(indicators1: List[str], indicators2: List[str],
:return: plot_config - eventually with indicators 1 and 2
"""
if plot_config:
if indicators1:
plot_config['main_plot'] = {ind: {} for ind in indicators1}
if indicators2:
plot_config['subplots'] = {'Other': {ind: {} for ind in indicators2}}
if not plot_config:
# If no indicators and no plot-config given, use defaults.
if not indicators1: