반응형
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
- Apache
- Google Excel
- hive
- gas
- Redshift
- PANDAS
- math
- Mac
- PySpark
- django
- array
- c#
- string
- Kotlin
- google apps script
- Tkinter
- numpy
- Github
- SQL
- Python
- matplotlib
- dataframe
- 파이썬
- Excel
- Google Spreadsheet
- list
- Java
- PostgreSQL
- GIT
Archives
- Today
- Total
목록x축 회전 (1)
달나라 노트

import matplotlib.pyplot as plt list_x = [ '2022-01-01', '2022-01-02', '2022-01-03', '2022-01-04', '2022-01-05', '2022-01-06', '2022-01-07', '2022-01-08' ] list_y = [10, 2, 8, 4, 6, 5, 6, 4] plt.plot(list_x, list_y, color='skyblue', marker='o', markerfacecolor='blue', markersize=6) plt.show() 위 코드를 실행시키면 아래와 같은 결과가 나옵니다. 그래프 자체는 제대로 그려진거같은데, x축의 값이 겹쳐서 보이죠. x축을 날짜를 나타내는데 날짜를 나타내는 텍스트의 길이가 길어서 일부..
Python/Python matplotlib
2022. 1. 12. 22:43