반응형
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
- Kotlin
- numpy
- Java
- matplotlib
- Tkinter
- django
- PostgreSQL
- math
- PySpark
- 파이썬
- gas
- google apps script
- Google Spreadsheet
- Redshift
- Excel
- PANDAS
- Github
- SQL
- string
- Python
- list
- Apache
- Mac
- dataframe
- Google Excel
- GIT
- array
- c#
- hive
Archives
- Today
- Total
목록yscale (1)
달나라 노트
Python matplotlib : xscale, yscale, set_xscale, set_yscale (x축 scale 조절, y축 scale 조절, log scale, subplot log scale)
데이터 분석을 하다보면 시각화는 꽤 중요한 부분 중 하나입니다. 근데 간혹 x축 값과 y축 값이 너무 커지게 되면 값들을 좌표평면 상에 나타낸다고 해도 그 경향성을 시각화하기가 어려울 수 있습니다. 예를들어 y = 1500 / x 라는 함수를 만족하는 값들을 가지고 있고, 이 값들을 그래프로 나타내본다고 해봅시다. import matplotlib.pyplot as plt import numpy as np list_x = np.linspace(0, 2000, 10000) list_y = [] for x in list_x: val_result = 1500 / x list_y.append(val_result) plt.plot(list_x, list_y, color='gray') plt.show() matplo..
Python/Python matplotlib
2024. 2. 24. 16:59