Skip to content
Snippets Groups Projects
Commit 106863c7 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

fix plotting ylim specification

parent 0b644921
No related branches found
No related tags found
No related merge requests found
Pipeline #77272 passed
......@@ -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])
......
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