diff options
Diffstat (limited to 'plot.py')
-rwxr-xr-x | plot.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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()) |