반응형
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
- list
- Excel
- Apache
- hive
- PySpark
- Redshift
- google apps script
- Github
- Google Spreadsheet
- Tkinter
- Kotlin
- array
- django
- gas
- Java
- Python
- numpy
- matplotlib
- c#
- Mac
- SQL
- string
- GIT
- PANDAS
- math
- PostgreSQL
- 파이썬
- Google Excel
- dataframe
Archives
- Today
- Total
목록itck_params (1)
달나라 노트
Python matplotlib : tick_params (축 라벨 속성 설정하기, 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.plot(list_x_1, list_y_1, color='skyblue', marker='o', markerfacecolor='blue', markersize=6) plt.tick_params(axis='y', labelcolor='blue') plt.show() plot을 이용해 그래프를 그리면 기본적으로 x축과 y축 라벨은 검은색으로 적히게됩니다. 그런데 tick_params method를 이용하면 위 이미지처럼 축의 라벨 색상을 바꿀 수 있습니다. plt.tick_params(axis='y', labelco..
Python/Python matplotlib
2022. 1. 12. 23:46