반응형
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 |
Tags
- Redshift
- PANDAS
- GIT
- gas
- PostgreSQL
- dataframe
- Java
- Python
- SQL
- hive
- PySpark
- Google Spreadsheet
- Google Excel
- google apps script
- array
- django
- 파이썬
- Tkinter
- numpy
- Github
- c#
- Mac
- string
- Kotlin
- math
- matplotlib
- list
- Apache
- Excel
Archives
- Today
- Total
목록ylabel (1)
달나라 노트
Python matplotlib : title, xlabel, ylabel (그래프 제목 붙이기, x축 이름 붙이기. y축 이름 붙이기. x축 라벨 붙이기. y축 라벨 붙이기.)
matplotlib를 이용해서 그래프를 그린 후 x축/y축 각각이 어떤 데이터를 의미하는지에 대한 정보를 주기 위해 x축/y축에 이름을 붙여줄 수 있습니다. 또한 그래프 자체의 제목을 붙일 수도 있습니다. import matplotlib.pyplot as plt list_x_1 = [1, 2, 3, 4, 5, 6, 7, 8] list_y_1 = [10, 2, 8, 4, 6, 5, 6, 4] plt.title('Test graph') plt.xlabel('X axis') plt.ylabel('Y axis') plt.plot(list_x_1, list_y_1, color='skyblue', marker='o', markerfacecolor='blue', markersize=6) plt.show() 위 코드의..
Python/Python matplotlib
2022. 1. 14. 19:30