Explicitly given indicators should override plot_config

pull/2752/head
Matthias 6 years ago
parent 53499e01de
commit d0ccfa1925

@ -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:

Loading…
Cancel
Save