MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / plot_stats

Function plot_stats

utils/visualize.py:213–222  ·  view source on GitHub ↗
(output_dir, stats, interval)

Source from the content-addressed store, hash-verified

211'''
212
213def plot_stats(output_dir, stats, interval):
214 content = stats.keys()
215 # f = plt.figure(figsize=(20, len(content) * 5))
216 f, axs = plt.subplots(len(content), 1, figsize=(20, len(content) * 5))
217 for j, (k, v) in enumerate(stats.items()):
218 axs[j].plot(interval, v)
219 axs[j].set_ylabel(k)
220
221 f.savefig(os.path.join(output_dir, 'stat.pdf'), bbox_inches='tight')
222 plt.close(f)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected