| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- pandas
- selenium
- 결측치
- DateTime
- &
- PyInstaller
- List Comprehension
- excel
- 엑셀
- 상대경로
- 자동화
- concat
- 이미지 파일 편집
- matplotlib
- pyautogui
- Spyder
- Python
- exe
- 한글 글씨체
- sheet_name
- 단축키
- qgis
- Today
- Total
목록matplotlib (2)
데이터 분석, 핸들링
1. 문제 파이썬으로 그래프를 그릴 때 한글(그래프 제목 등)을 입력하면 글자가 깨진다. 2. 해결 1) pc에 설치된 글씨체 리스트 불러오기(필요 모듈 : import matplotlib.font_manager as fm) 2) 글씨체 리스트에서 한글 글씨체 고르기(plt.rcParams['font.family'] = 'Hancom Gothic' # 한컴고딕) 코드는 아래와 같다. import matplotlib.font_manager as fm #pc에 설치된 글씨체 리스트 목록 추출 모듈 #%% 한글 글씨체 불러오기 font_list = [font.name for font in fm.fontManager.ttflist] plt.rcParams['font.family'] = 'Hancom Gothic..
1. 개요 09:00 부터 00:00 까지의 시간에 따른 온도 변화 그래프를 그렸는데 x 축이 모두 표출 되어 겹쳐 보였다(보기 안좋음). import matplotlib.pyplot as plt time = ['09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', '00:00'] temperature = [20, 21, 22, 24, 23, 22, 23, 25, 23, 25, 30, 15, 14, 16, 20, 22] plt.plot(time, temperature) plt.show() 2. 해결방안 코드를 수정하면 아..