FigureCanvasAgg' object has no attribute 'invalidate' ? python plotting

后端 未结 6 850
无人及你
无人及你 2021-02-05 12:19

I\'ve been following \'python for data analysis\'. On pg. 345, you get to this code to plot returns across a variety of stocks. However, the plotting function does not work for

6条回答
  •  后悔当初
    2021-02-05 13:03

    I seemed to resolve the issue (well at least in my case).

    I'm running IPython on a mac using python 2.7 and was getting the same error.

    It did seem to be an issue with the backend as when I looked at the "dock", quite a few instances of the Python Launcher had been opened (not sure why this happened in the first place though).

    Forcing those to close caused the python kernel to restart and has seemed to have fixed my issue.

    The inline code is still in place and plots are showing correctly.

提交回复
热议问题