Commit 106863c7 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins

fix plotting ylim specification

parent 0b644921
Pipeline #77272 passed with stages
in 3 minutes and 35 seconds
......@@ -21,6 +21,8 @@ def plot_noise(
else:
fig = ax.figure
ylim = kwargs.get('ylim')
for name, trace in traces.items():
try:
data, style = trace
......@@ -58,9 +60,7 @@ def plot_noise(
)
ax.autoscale(enable=True, axis='y', tight=True)
if 'ylim' in kwargs:
ax.set_ylim(kwargs['ylim'])
else:
if ylim:
ax.set_ylim(ylim)
ax.set_xlim(freq[0], freq[-1])
......
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