반응형
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 | 31 |
Tags
- Google Spreadsheet
- django
- Tkinter
- list
- 파이썬
- dataframe
- Apache
- hive
- gas
- math
- Redshift
- Excel
- PANDAS
- Google Excel
- c#
- Presto
- Github
- Java
- matplotlib
- PySpark
- SQL
- array
- google apps script
- string
- PostgreSQL
- Kotlin
- numpy
- GIT
- Python
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