aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-11 21:08:04 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-11 21:08:04 -0500
commitb84588ec3149aaecaa61d09422446a8eb92a4da7 (patch)
tree8f1eda8081e317b141e492cbfd39fdbd49ba4d5f
parent7165fdce6ace32974992139a00ba79b7086dc558 (diff)
fixed data.py offsetter
-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)