반응형
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 |
Tags
- PySpark
- list
- Apache
- GIT
- SQL
- array
- PostgreSQL
- string
- math
- Excel
- Redshift
- Tkinter
- Python
- Github
- dataframe
- Mac
- Kotlin
- Google Spreadsheet
- c#
- 파이썬
- hive
- Google Excel
- django
- matplotlib
- Java
- gas
- numpy
- PANDAS
- google apps script
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