dennybritz / reinforcement-learning

Implementation of Reinforcement Learning Algorithms. Python, OpenAI Gym, Tensorflow. Exercises and Solutions to accompany Sutton's Book and David Silver's course.
http://www.wildml.com/2016/10/learning-reinforcement-learning/
MIT License
20.45k stars 6.02k forks source link

Error 'show() takes 1 positional argument but 2 were given' fixed in plotting.py #237

Open Dolores2333 opened 3 years ago

Dolores2333 commented 3 years ago

This commit delet the fig1 in plt.show(fig1) in the function plot_episode_stats. (line73, line 85 and line96). If do not delete fig1, fig2, fig3 in these three places, error 'show() takes 1 positional argument but 2 were given' will show in other IDE liek Pycharm though Jupyternote book doesn't have this error.