Commit 9faddb751b07afff3d57b235b2cedae42409a208

Authored by Guru Prasad
1 parent bd160bde

Added legend to tuning_comparison.py

Showing 1 changed file with 4 additions and 3 deletions
figures/tuning_comparison.py
... ... @@ -97,8 +97,9 @@ def plot(args, bmark, inefficiency, nt_points_list, t_points_list):
97 97 nt_ineff = [x['inefficiency'] for x in nt_points]
98 98 t_ineff = [x['inefficiency'] for x in t_points]
99 99  
100   - ax.plot(x_axis, nt_ineff, 'k')
101   - ax.plot(x_axis, t_ineff)
  100 + ax.plot(x_axis, nt_ineff, 'k', label='No Tuning')
  101 + ax.plot(x_axis, t_ineff, label='W. Tuning')
  102 + ax.legend()
102 103  
103 104  
104 105 ax = axes_array[1]
... ... @@ -130,7 +131,7 @@ def plot(args, bmark, inefficiency, nt_points_list, t_points_list):
130 131 out_fname = os.path.join(os.path.join(os.path.join(args.output_dir, 'tuning_comparison'), bmark), '%.1f.jpg' % (inefficiency))
131 132 if not os.path.exists(os.path.dirname(out_fname)):
132 133 os.makedirs(os.path.dirname(out_fname))
133   - plt.savefig(out_fname, dpi=300)
  134 + plt.savefig(out_fname)
134 135  
135 136 def main(argv):
136 137 args = parse(argv)
... ...