There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

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