summaryrefslogtreecommitdiffstats
path: root/plot.py
diff options
context:
space:
mode:
Diffstat (limited to 'plot.py')
-rwxr-xr-xplot.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/plot.py b/plot.py
index 78ba4d4..52e614d 100755
--- a/plot.py
+++ b/plot.py
@@ -22,18 +22,21 @@ for i in range(n_plots):
pyplot.ylabel('Time (s)')
ns = []
- zix_times = []
+ zix_tree_times = []
+ zix_sorted_array_times = []
glib_times = []
for line in file:
if line[0] == '#':
continue;
- (n, zix, glib) = line.split()
+ (n, zix_tree, zix_sorted_array, glib) = line.split()
ns.append(int(n))
- zix_times.append(float(zix))
+ zix_tree_times.append(float(zix_tree))
+ zix_sorted_array_times.append(float(zix_sorted_array))
glib_times.append(float(glib))
file.close()
- matplotlib.pyplot.plot(ns, zix_times, '-o', label='ZixTree')
+ matplotlib.pyplot.plot(ns, zix_tree_times, '-o', label='ZixTree')
+ matplotlib.pyplot.plot(ns, zix_sorted_array_times, '-o', label='ZixSortedArray')
matplotlib.pyplot.plot(ns, glib_times, '-x', label='GSequence')
pyplot.legend(loc='upper left')
pyplot.title(os.path.splitext(os.path.basename(filename))[0].title())