728x90

에러:

<string>:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

 

 

해결:

 

import matplotlib 대신

import matplotlib

matplotlib.use('TkAgg')

import matplotlib.pyplot as plt

써주면 된다.

 

 

참고: 

windows10 pycharm 사용 시 UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() 오류 해결 (tistory.com)

 

 

728x90

+ Recent posts