Skip to content
Snippets Groups Projects
Commit 449ef8b6 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

plot: use trace name if label not specified in style attribute

fixes bug where overall budget name was used instead.
parent 38e862b5
No related branches found
No related tags found
No related merge requests found
Pipeline #163902 passed
...@@ -34,7 +34,7 @@ def plot_budget( ...@@ -34,7 +34,7 @@ def plot_budget(
for name, trace in budget.items(): for name, trace in budget.items():
style = trace.style style = trace.style
if 'label' not in style: if 'label' not in style:
style['label'] = budget.name style['label'] = name
if 'linewidth' in style: if 'linewidth' in style:
style['lw'] = style['linewidth'] style['lw'] = style['linewidth']
elif 'lw' not in style: elif 'lw' not in style:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment