Skip to content
Snippets Groups Projects
Commit a3ad7a83 authored by Austin Jennings's avatar Austin Jennings Committed by Jameson Rollins
Browse files

fix conditional for saturation finding.

closes 179
parent 80c15a57
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