diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-11 22:03:53 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-11 22:03:53 -0400 |
| commit | 236b06a88f709ca6c70ce0c7adfb57f9f0b2a60d (patch) | |
| tree | 6be9561263946d30e0f402bae94786bc0a27393f /proof.py | |
| parent | aa709603639d6a010ae20bc7fc2856c92693ecf6 (diff) | |
| download | pos-236b06a88f709ca6c70ce0c7adfb57f9f0b2a60d.tar.gz | |
Add final code used during experiments
Diffstat (limited to 'proof.py')
| -rw-r--r-- | proof.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/proof.py b/proof.py new file mode 100644 index 0000000..96cdd00 --- /dev/null +++ b/proof.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python +import numpy as np +import matplotlib.pyplot as plt +import matplotlib +import seaborn + +seaborn.set_style("white") +matplotlib.rcParams.update({'xtick.labelsize': 12}) +matplotlib.rcParams.update({'ytick.labelsize': 12}) +matplotlib.rcParams.update({'legend.fontsize': 12}) +matplotlib.rcParams.update({'axes.titlesize': 12}) +matplotlib.rcParams.update({'axes.labelsize': 12}) + +N = 3 +bf = (915544, 557179, 141672) +df = (886501, 528297, 107256) + +ind = np.arange(N) # the x locations for the groups +width = 0.25 # the width of the bars + +fig, ax = plt.subplots() +rects1 = ax.bar(ind-width, df, width) +rects2 = ax.bar(ind, bf, width, color='g') + + +# add some text for labels, title and axes ticks +ax.set_ylabel('Time per proof (ns)') +ax.set_xlabel('# proofs') +ax.set_xticks(ind) +ax.set_xticklabels(('2000', '20000', '200000')) + +ax.legend((rects1[0], rects2[0]), ('DF', 'BF')) +plt.savefig("proofs.pdf", bbox_inches='tight') |
