Created
May 1, 2018 03:38
-
-
Save tristansokol/9042c444009dfd80e965cbbcb53c5c31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import os | |
dir_path = os.getcwd() | |
r, l, t = np.loadtxt(dir_path+'/results/jerk-agentv10/monitor.csv', delimiter=',', unpack=True, skiprows=1) | |
fig = plt.figure(num=None, figsize=(14, 6), dpi=80, facecolor='w', edgecolor='k') | |
ax = fig.add_subplot(111) | |
ax.plot(t, r, c='b', label='Reward',linewidth=0.5) | |
ax.plot(t, l, c='r', label='Episode Length',linewidth=0.5) | |
plt.xlabel('Wall Time') | |
# plt.ylabel('y') | |
plt.title('Reward & Episode Length') | |
plt.legend() | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment