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

后端 未结 6 851
无人及你
无人及你 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 12:52

    I have this error when I use a non-interactive backend (e.g. matplotlib.use('svg'))

    Fix for me was to change the backend (e.g. matplotlib.use('Qt5Agg'))

提交回复
热议问题