Skip to content

Commit

Permalink
Merge pull request pybrain#112 from chrisdembia/nfqplotting
Browse files Browse the repository at this point in the history
Fix pyplot issue in nfq example.
  • Loading branch information
schaul committed Mar 24, 2014
2 parents cb99ba3 + 71f1d16 commit af5aad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/rl/valuebased/nfq.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def plotPerformance(values, fig):
plt.clf()
plt.plot(values, 'o-')
plt.gcf().canvas.draw()
# Without the next line, the pyplot plot won't actually show up.
plt.pause(0.001)

performance = []

Expand Down

0 comments on commit af5aad3

Please sign in to comment.