MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / save_plot

Function save_plot

deps/memkind/src/test/draw_plots.py:110–120  ·  view source on GitHub ↗
(show_first_operation, subfolder, filename)

Source from the content-addressed store, hash-verified

108 ax.bar(x, time, y, zdir='y', width=bar_width, color=draw_color)
109
110def 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
122def load_data_from_files():
123 data = []

Callers 1

draw_plots.pyFile · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected