if v not in varnames:
varnames.append(v)
else:
v_tmp = []
for tr in trace:
v_tmp.extend(expand_variable_names(tr, varnames))
varnames = np.unique(v_tmp)
After Change
colors = [colors for i in range(length_models)]
if varnames is None:
varnames = set.union(*[set(tr.columns) for tr in trace])
else:
varnames = set.union(*[set(expand_variable_names(tr, varnames)) for tr in trace])
if figsize is None: