반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- math
- PANDAS
- gas
- PySpark
- Excel
- hive
- SQL
- Github
- dataframe
- Apache
- PostgreSQL
- list
- Tkinter
- Google Excel
- string
- numpy
- Google Spreadsheet
- Kotlin
- array
- Java
- c#
- Redshift
- Python
- 파이썬
- matplotlib
- GIT
- Mac
- django
- google apps script
Archives
- Today
- Total
달나라 노트
AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'? Error 본문
Python/Python matplotlib
AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'? Error
CosmosProject 2024. 4. 1. 23:42728x90
반응형
Python matplotlib를 사용하다 보면 아래와 같은 에러가 발생할 때가 있습니다.
AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'? Error
이는 아주 간단하게 해결 가능한데
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
...
위처럼 matplotlib.use('TkAgg') 라는 내용을 코드의 가장 상단에 적어주면 됩니다.
728x90
반응형
'Python > Python matplotlib' 카테고리의 다른 글
Comments