반응형
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
- PySpark
- Github
- list
- Google Excel
- Mac
- Python
- Kotlin
- Java
- dataframe
- gas
- numpy
- math
- hive
- string
- PostgreSQL
- Excel
- google apps script
- 파이썬
- GIT
- Tkinter
- array
- Apache
- django
- c#
- Redshift
- Google Spreadsheet
- SQL
- PANDAS
- matplotlib
Archives
- Today
- Total
목록grid (1)
달나라 노트

matplotlib에서 grid를 이용하면 그래프에 격자선을 넣을 수 있습니다. import matplotlib.pyplot as plt list_x = [1, 2, 3, 4, 5] list_y = [90, 46, 70, 10, 89] plt.plot(list_x, list_y) plt.show() 위 코드처럼 그냥 pyplot을 이용해 그래프를 그리면 그래프만 나타나고 그래프 배경에 격자선이 없습니다. import matplotlib.pyplot as plt list_x = [1, 2, 3, 4, 5] list_y = [90, 46, 70, 10, 89] plt.plot(list_x, list_y) plt.grid(visible=True) plt.show() 위처럼 grid method의 visible..
Python/Python matplotlib
2022. 5. 12. 20:45