aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data.py2
1 files changed, 1 insertions, 1 deletions
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)