반응형
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
- c#
- SQL
- string
- PostgreSQL
- google apps script
- Kotlin
- Google Spreadsheet
- array
- Google Excel
- Excel
- numpy
- Apache
- Redshift
- Java
- gas
- hive
- Python
- PANDAS
- Github
- matplotlib
- 파이썬
- math
- PySpark
- GIT
- dataframe
- django
- list
- Mac
- Tkinter
Archives
- Today
- Total
목록clear figure (1)
달나라 노트
Python matplotlib : clf, cla (좌표평면 지우기, 그래프 지우기, clear)
matplotlib에서는 clf, cla라는 method가 있습니다. clf method는 clf method가 적용된 그래프의 figure를 지웁니다. figure를 지운다고 하니까 좀 의미가 와닿지 않는데, 좀 더 간단하게 말하면 그래프 / 좌표평면 / title / x label / y label / xlim / ylim 등 모든걸 지운다고 보시면 됩니다. cla method는 좌표평면을 제외한 내용을 지워줍니다. 따라서 cla method를 적용한 그래프에는 좌표평면만 남고 좌표평면 자체를 제외한 모든 것(그래프 / title / x label / y label / xlim / ylim 등)이 지워집니다. import matplotlib.pyplot as plt list_x = [0, 1, 2, ..
Python/Python matplotlib
2022. 1. 19. 20:01