반응형
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
- Python
- c#
- hive
- google apps script
- numpy
- Excel
- 파이썬
- Google Excel
- Github
- Kotlin
- Apache
- dataframe
- Google Spreadsheet
- Redshift
- matplotlib
- math
- PANDAS
- Java
- list
- Tkinter
- PostgreSQL
- django
- Presto
- SQL
- GIT
- array
- PySpark
- string
- gas
Archives
- Today
- Total
목록set_data (1)
달나라 노트
matplotlib에서 set_data method는 기존 그래프에 존재하는 좌표값을 아예 지우고, 새로운 x좌표/y좌표값들로 다시 설정해주는 기능을 합니다. import matplotlib.pyplot as plt list_x = [1, 2, 3, 4, 5] list_y = [2, 3, 4, 5, 6] line = plt.plot(list_x, list_y, color='skyblue', marker='o', markerfacecolor='blue', markersize=6)[0] list_x = [1, 3, 4, 5] list_y = [6, 5, 4, 3] line.set_data(list_x, list_y) plt.show() list_x = [1, 2, 3, 4, 5] list_y = [2, 3,..
Python/Python matplotlib
2022. 1. 16. 02:44