its not optimal that, in the middle of the video, you teach to use fig.add_axes. that works in jupyter, but will screw up your visualisation if you try to export the figure or are plotting with pycharm. i had this problem and fixed it by replacing fig.add_axes([0,0,1,1]) with fig.add_subplot(111)