(output_dir, stats, interval)
| 211 | ''' |
| 212 | |
| 213 | def 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) |
nothing calls this directly
no outgoing calls
no test coverage detected