| 108 | ax.bar(x, time, y, zdir='y', width=bar_width, color=draw_color) |
| 109 | |
| 110 | def save_plot(show_first_operation, subfolder, filename): |
| 111 | if show_first_operation: |
| 112 | path = os.path.join(output_directory, "with_first_operation") |
| 113 | else: |
| 114 | path = os.path.join(output_directory, "without_first_operation") |
| 115 | if subfolder: |
| 116 | path = os.path.join(path, subfolder) |
| 117 | if not os.path.exists(path): |
| 118 | os.mkdir(path) |
| 119 | plt.savefig(os.path.join(path, filename)) |
| 120 | print "Saved file %s" % filename |
| 121 | |
| 122 | def load_data_from_files(): |
| 123 | data = [] |