오류 해결)UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

Hyebin Kim·2022년 10월 12일

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')

이렇게 하니 해결 됨.

profile
아직은 쪼렙..

0개의 댓글