plt.show()를 실행하려고 하였더니 "UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure." 오류가 뜸.
그래서 stackoverflow를 뒤졌더니
import matplotlib
matplotlib.use('TkAgg')
이거 입력하래서 했음
근데 또 오류 뜸.
ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'qt5' is currently running
import matplotlib
matplotlib.use('Qt5Agg')
이렇게 하니 해결 됨.