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

plot: create new dict for trace style

This fixes a bug whereby un-styled traces for some reason pick up the
previous trace style.
parent 1cf54b7a
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,11 @@ def plot_noise(
for name, trace in traces.items():
if isinstance(trace, Mapping):
trace = trace['Total']
try:
data, style = trace
except:
data = trace[0]
style = dict(**trace[1])
except TypeError:
data = trace
style = {}
# assuming all data is PSD
......@@ -48,6 +50,7 @@ def plot_noise(
style['lw'] = style['linewidth']
elif 'lw' not in style:
style['lw'] = 3
ax.loglog(freq, data, **style)
ax.grid(
......
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