diff options
Diffstat (limited to 'py/boxplot.py')
-rw-r--r-- | py/boxplot.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/py/boxplot.py b/py/boxplot.py index be1c024..2fd093e 100644 --- a/py/boxplot.py +++ b/py/boxplot.py @@ -1,12 +1,15 @@ from data2 import trials import matplotlib.pyplot as plt +from matplotlib.transforms import Bbox + +plt.figure(figsize=(16,9)) vecs = [] names = [] for trial in trials: vecs.append(trial.nearest_neighbor()) names.append(str(trial)) - + plt.boxplot(vecs, labels=names) plt.title('Nearest Neighbor for Each Pit in Different Trials') plt.ylabel('Distance to Nearest Neighbor (cm)') |