From b84588ec3149aaecaa61d09422446a8eb92a4da7 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sat, 11 Jan 2020 21:08:04 -0500
Subject: fixed data.py offsetter
---
data.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data.py b/data.py
index 1933065..1144e9e 100644
--- a/data.py
+++ b/data.py
@@ -123,7 +123,7 @@ elif arg == 'neighbor':
for trial in trials:
nei = trial.nearest_neighbor()
for n in range(len(nei)):
- nei[n] += ((-1)**n)*.05
+ nei[n] += n*.05
plt.xlabel('Square root of Trial Area (cm)')
plt.ylabel('Nearest Neighbor for Individual Pits (cm)')
x += [math.sqrt(trial.size[0]*trial.size[1])]*len(nei)
--
cgit