From dbf4a6286a60e136588b2254260d51ed67d85426 Mon Sep 17 00:00:00 2001 From: Sean Leavey <gpg@attackllama.com> Date: Tue, 24 Mar 2020 10:55:08 +0100 Subject: [PATCH] Only autoset ylim if not specified --- gwinc/plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gwinc/plot.py b/gwinc/plot.py index f29b70dc..7c36471e 100644 --- a/gwinc/plot.py +++ b/gwinc/plot.py @@ -40,7 +40,8 @@ def plot_noise( alpha=0.6, lw=4, ) - ylim = [min(data)/10, max(data)] + if ylim is None: + ylim = [min(data)/10, max(data)] if 'label' not in style: style['label'] = name if 'linewidth' in style: -- GitLab