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
I have this error when I use a non-interactive backend (e.g. matplotlib.use('svg'))
matplotlib.use('svg')
Fix for me was to change the backend (e.g. matplotlib.use('Qt5Agg'))
matplotlib.use('Qt5Agg')