Skip to content
Snippets Groups Projects
Commit 2284ce69 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

Merge branch 'define_variables' into 'master'

Define variables for issue 179

See merge request jameson.rollins/locklost!108
parents 80c15a57 a3ad7a83
No related branches found
No related tags found
No related merge requests found
......@@ -185,13 +185,13 @@ def set_ylims(saturations, xmax, buffer):
ymins.append(min(scaling_vals))
ymaxs.append(max(scaling_vals))
if max(ymaxs) > 0:
if max(ymaxs) >= 0:
ymax = 1.1*max(ymaxs)
elif max(ymaxs) < 0:
else:
ymax = 0.9*max(ymaxs)
if min(ymins) < 0:
if min(ymins) <= 0:
ymin = 1.1*min(ymins)
elif min(ymins) > 0:
else:
ymin = 0.9*min(ymins)
if ymin > -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