본문 바로가기
연구 노트/R Python

Matplotlib is currently using agg

by Dr. STEAM 2021. 11. 17.
반응형

에러:

<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
반응형