Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions lib/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
if noshow:
plt.close(fig1)
else:
plt.show(fig1)
plt.show()

# Plot the episode reward over time
fig2 = plt.figure(figsize=(10,5))
Expand All @@ -82,7 +82,7 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
if noshow:
plt.close(fig2)
else:
plt.show(fig2)
plt.show()

# Plot time steps and episode number
fig3 = plt.figure(figsize=(10,5))
Expand All @@ -93,6 +93,6 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
if noshow:
plt.close(fig3)
else:
plt.show(fig3)
plt.show()

return fig1, fig2, fig3