Commit c6f05d86 authored by Daniel Brown's avatar Daniel Brown

Moving hardcoded ylimits to arguments

parent 54d6f740
Pipeline #32678 passed with stages
in 1 minute and 5 seconds
......@@ -73,6 +73,8 @@ def plot_noise(
noises,
ax=None,
displacement=True,
ymin=3e-25,
ymax=1e-21
):
"""Plot a GWINC noise budget from calculated noises
......@@ -114,6 +116,7 @@ def plot_noise(
except KeyError:
pass
ax.loglog(f, sqrt(noise), **stylekw)
plot_dict(noises)
ax.loglog(f, sqrt(noises['Total']), color='#000000', alpha=0.6, label='Total', lw=4)
......@@ -134,7 +137,7 @@ def plot_noise(
ax.set_xlabel('Frequency [Hz]')
ax.set_ylabel(u"Strain [1/\u221AHz]")
ax.set_xlim([min(f), max(f)])
ax.set_ylim([3e-25, 1e-21])
ax.set_ylim([ymin, ymax])
if displacement:
ax_d = ax.twinx()
......
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