Commit d23fb2ad authored by Jameson Rollins's avatar Jameson Rollins

use 'linewidth' instead of 'lw' consistently throughout

parent 1e64e074
Pipeline #193693 passed with stages
in 2 minutes and 20 seconds
......@@ -53,12 +53,12 @@ def main():
pad=range_pad,
range=label_range,
)
ax.loglog(freq, trace.asd, label=label, lw=2)
ax.loglog(freq, trace.asd, label=label, linewidth=2)
ax.grid(
True,
which='both',
lw=0.5,
linewidth=0.5,
ls='-',
alpha=0.5,
)
......
......@@ -22,7 +22,7 @@ def plot_trace(
style = dict(
color='#000000',
alpha=0.6,
lw=4,
linewidth=4,
)
style.update(getattr(trace, 'style', {}))
if 'label' in style:
......@@ -35,16 +35,14 @@ def plot_trace(
style = strace.style
if 'label' not in style:
style['label'] = name
if 'linewidth' in style:
style['lw'] = style['linewidth']
elif 'lw' not in style:
style['lw'] = 3
elif 'linewidth' not in style:
style['linewidth'] = 3
ax.loglog(trace.freq, strace.asd, **style)
ax.grid(
True,
which='both',
lw=0.5,
linewidth=0.5,
ls='-',
alpha=0.5,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment